Verifying XML against a schema

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi;
I loaded an XML file with a schema and I assumed that it would throw an exception if the XML did not match the schema (and we would then tell the user). However, in the case where the schema has no namespaces and the XML file has a prefix used on the root
node, it did not throw an exception.
Any idea why? And how can I get an error message for a case like this?
thanks - dave <hr class="sig Very funny video - http://blogs.windwardreports.com/davidt/2010/02/reporting-as-a-metaphor.html
Whats your Metaphor?

View the full article
 
Back
Top