This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SAXParser unable to parse xsd file to verify xml file

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!