M
Mhaxx
How can I stop Xerces Java 2.6.2 execution? If there is a validation
error I want to stop parsing, but now it goes on.. :-(
Mhaxx
error I want to stop parsing, but now it goes on.. :-(
Mhaxx
Mhaxx said:How can I stop Xerces Java 2.6.2 execution? If there is a validation
error I want to stop parsing, but now it goes on.. :-(
Johannes Koch said:That's normal behavior. Only fatal errors (violating wellformedness)
make the parser stop.
You may ry
System.exit()
in your ErrorHandler's error method.
Keith said:Would throwing an exception in the error method stop the parser?
Johannes said:I don't think so.
Martin said:public void parse(InputSource input)
throws IOException,
SAXException
Parse an XML document.
During the parse, the XMLReader will provide information about the XML
document through the registered event handlers.
This method is synchronous: it will not return until parsing has ended.
If a client application wants to terminate parsing early, it should
throw an exception.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.