File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validating xml

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have got one xml and one xsd,

note.xml



note.xsd

Now i am trying to validate the xml using the code given in Java Ranch FAQ.

but i am getting the following error.
please help me solving this error.


XmlValidator.java



Error stack trace.



it seems like my xml is valid according to xsd but it still says that the note element is there in the xml.

please let me know if i am misunderstanding something, as i am new to xml and xsd.

Thanks & Regards,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic