Error in automatically generated XSD scheme: global element 'configuration' has already been declared

Go To StackoverFlow.com

4

When automatically creating a scheme for app.config, an app.xsd is generated.

However in the beginning fragment:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"     xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="configuration">
    <xs:complexType>
      <xs:sequence>

I get the warning:

Warning (line 1)    The global element 'configuration' has already been declared.

When I double click on the warning, the focus is on the fragment:

Does anybody have a solution how to get rid of this warning?

Thanks in advance.

2012-04-05 20:32
by Michel Keijzers
Can you add (Sample) XML here? The problem looks local, however can be resolved once we know XML - InfantPro'Aravind' 2012-04-06 15:38
Are you getting this warning while validating an XML against this schema, or while validating the XSD file itself (using some sort of an XSD validator) - Isaac 2012-10-01 13:37
I get the error when building. However I don't get th e error anymore, probably after a reboot of the system - Michel Keijzers 2012-10-01 13:45
It's not clear from the question title or body that the problem is specific to Visual Studio. The tags are helpful, but they're not as salient - Kenny Evitt 2012-10-09 16:21


2

I have no idea if this is related to the problem that prompted this question, but I was encountering the same type of error ("warning") in the program XML Notepad and closing and then re-opening it resolved the errors I was observing like restarting your computer did for your own errors.

2012-10-09 16:23
by Kenny Evitt
It might be but I cannot tell anymore since I don't have the problem anymore. Still upvoted because it might be valuable for others - Michel Keijzers 2012-10-09 21:36
Ads