aspose file tools*
The moose likes Beginning Java and the fly likes SAXParser unable to parse xsd file to verify xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "SAXParser unable to parse xsd file to verify xml file " Watch "SAXParser unable to parse xsd file to verify xml file " New topic
Author

SAXParser unable to parse xsd file to verify xml file

Ong CherYee
Greenhorn

Joined: Jan 17, 2008
Posts: 11
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SAXParser unable to parse xsd file to verify xml file