File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How to validate XML against DTD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to validate XML against DTD" Watch "How to validate XML against DTD" New topic
Author

How to validate XML against DTD

Ekaterina Galkina
Greenhorn

Joined: Sep 14, 2010
Posts: 15
Hello,
I'm trying to validate XML against external XSD and DTD and using an example from here http://faq.javaranch.com/java/HowToValidateXmlAgainstAnySchema
With XSD it's ok, but after I changed red lines in the following way:



I get an exception
java.lang.IllegalArgumentException: jaxp-order-not-supported: Property 'http://java.sun.com/xml/jaxp/properties/schemaLanguage' must be set before setting property 'http://java.sun.com/xml/jaxp/properties/schemaSource'

Could anyone explain me what does it mean? Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: How to validate XML against DTD