Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#195 Associating XML schema makes existing code invalid

Bugs
closed
nobody
schema (1)
5
2013-12-12
2013-01-30
Ronald
No

I have an XML file which looks like this:

<testrequest version="1.0"> ... </testrequest>

and I have a suitable XML Schema. To validate the file, I used the menu XML/Associate/XML Schema and entered the file name.

After this, XML Editor modified (!) my XML file to:

<testrequest version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...."> ....

This is of course invalid, since the topmost element does not permit a xmlns:xsi attribute!

Discussion

  • Ronald
    Ronald
    2013-01-30

    Sorry, my mistake. I just verified that, since <testrequest> is the topmost element, the schema location MUST go there. Please close the ticket.

     
  • Zane U. Ji
    Zane U. Ji
    2013-07-21

    Closed as the reporter requested.

     
  • Zane U. Ji
    Zane U. Ji
    2013-07-21

    • status: open --> closed