Michel Keijzers
Michel Keijzers

Reputation: 15367

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

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.

Upvotes: 4

Views: 2693

Answers (1)

Kenny Evitt
Kenny Evitt

Reputation: 9801

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.

Upvotes: 2

Related Questions