Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validate XML against XSD

 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I was trying to validate a XML document against XSD.

Everything is fine if that XSD is a very simple XSD. But if my XSD includes some other XSD's also as mentioned below as an example this program is not functioning.

<xs:include schemaLocation="ABC.xsd"


I am also attaching code which I used to validate.



Could anyone let me know, if I need to use something else to validate XML against complex XSD's. Any insight would be appreciated.>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic