wood burning stoves
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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

How to validate XML against DTD

Ekaterina Galkina

Joined: Sep 14, 2010
Posts: 15
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
jQuery in Action, 3rd edition