aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to validate XML against DTD
 
Similar Threads
Parse/Validate with DSIG schema issue
Help for warning: src-import.0: Failed to read imported schema document
xml parsing problem using xerces
Throws IllegalArguementException when validating XML with schema
Read File from jar file