Code example for ContentHandler

Methods: endElement, startElement

0
        return h;
    } 
 
    protected final void addEnd(String name) {
        try { 
            h.endElement("", name, name);
        } catch (SAXException ex) {
            throw new RuntimeException(ex.toString());
        } 
    } 
 
    protected final void addStart(String name, Attributes attrs) {
        try { 
            h.startElement("", name, name, attrs);
        } catch (SAXException ex) {
            throw new RuntimeException(ex.toString());
        } 
    } 
 
    protected final void addElement(String name, Attributes attrs) {
        addStart(name, attrs);