Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SAXParser unable to parse xsd file to verify xml file  RSS feed

Ong CherYee
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!