View RSS Feed

Recent Blogs Posts

  1. Java SAX DefaultHandler Exceptions

    by , 04-27-2012 at 06:16 PM
    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 &notLegal;). The SAXParser ...