The DefaultHandler class has three methods you can override to handle exceptions encountered during the XML parsing. Here they are: Java Code: public void warning(SAXParseException e) throws SAXException { } public void error(SAXParseException e) throws SAXException { } public void fatalError(SAXParseException e) throws SAXException { } Let's say that the parser encounters an illegal XML entity (like ¬Legal;). The SAXParser ...
public void warning(SAXParseException e) throws SAXException { } public void error(SAXParseException e) throws SAXException { } public void fatalError(SAXParseException e) throws SAXException { }
License4J 4.0
Yesterday, 12:23 AM in Java Software