This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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?
 
Consider Paul's rocket mass heater.
 
subject: SAXParser unable to parse xsd file to verify xml file
 
Similar Threads
Getting all child element from root element
xml validator problem
Recreate XML file
Connection refused: connect in faces-config.xml
validate xml dom with schema