I used the
W3 validator and my XML passed and I then used this
XSD generator found online where I pasted my XML and I noticed that it created this weird attribute in the middle of my XML.
then it doesn't work and I can't figure out why. One thing I noticed is that if I paste the above I can actually make it work be removing the number '1' from the attribute line I mentioned so it's as follows:
Which then makes it work. It's super weird! I am quite confused as to what this attribute actually is doing. If I paste my XSD without the attribute at all it won't generate anything either.
Member
73 Points
37 Posts
Attribute introduced in my XML causes validation and generation issues
Nov 02, 2013 07:02 PM|twice|LINK
Hi,
I used the W3 validator and my XML passed and I then used this XSD generator found online where I pasted my XML and I noticed that it created this weird attribute in the middle of my XML.
The thing is I already created my XSD and I simply wanted to see if I got it correct. Everything but that line is spot on. Here it is in context:
I then tried to create some XML data by using this online generator with the above and it works. However if I paste my full XSD,
then it doesn't work and I can't figure out why. One thing I noticed is that if I paste the above I can actually make it work be removing the number '1' from the attribute line I mentioned so it's as follows:
Which then makes it work. It's super weird! I am quite confused as to what this attribute actually is doing. If I paste my XSD without the attribute at all it won't generate anything either.
Thanks,
twice
xsd
Member
472 Points
167 Posts
Re: Attribute introduced in my XML causes validation and generation issues
Nov 04, 2013 08:45 PM|BetsyASP|LINK
Hi twice,
Please try to read these articles:
http://www.usingxml.com/Basics/XmlSpace
http://www.liquid-technologies.com/Tutorials/XmlSchemas/XsdTutorial_01.aspx
Regards.
xsd