• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAXParser unable to parse xsd file to verify xml file

 
Ong CherYee
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an xsd file which the SAXParser is to parse and use it to validate some xml files.

I used the setEntityResolver and parse methods of the SAXParser and a custom class called MyEntityResolver. But errors appeared when the code is run.

The class where the SAXParser and the custom class is used is shown below:



The custom class MyEntityResolver is listed below:



The SAXParseException was caught when the code runs. Is there something wrong with the code above or does the fault lie with the xsd/xml file?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic