Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to validate XML against DTD

 
Ekaterina Galkina
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic