G
Guest
I'm trying to use XmlValidatingReader to programatically validate an XML
document according to a given schema. However, no matter what schema/doc pair
I feed into the program I keep getting the same error:
The element my_namespace:my_top_element have not been declared. An error
occured at (2,2).
All of the doc/schema pairs I have tried validate perfectly OK using several
online xml/xsd validators (like for instance this one:
http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx )
I'm using the standard .NET classes for XML and my code looks like this:
http://www.rafb.net/paste/results/xMvX3926.html
Here is one of the XML documents I tried to test with:
http://www.rafb.net/paste/results/FqPvRk85.html
Here is the corresponding schema:
http://www.rafb.net/paste/results/CZ5qkX25.html
Sincerly,
Martin
document according to a given schema. However, no matter what schema/doc pair
I feed into the program I keep getting the same error:
The element my_namespace:my_top_element have not been declared. An error
occured at (2,2).
All of the doc/schema pairs I have tried validate perfectly OK using several
online xml/xsd validators (like for instance this one:
http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx )
I'm using the standard .NET classes for XML and my code looks like this:
http://www.rafb.net/paste/results/xMvX3926.html
Here is one of the XML documents I tried to test with:
http://www.rafb.net/paste/results/FqPvRk85.html
Here is the corresponding schema:
http://www.rafb.net/paste/results/CZ5qkX25.html
Sincerly,
Martin