Code example for DefaultHandler

Methods: startElement

0
        } 
        if ("invitations".equals(qName)) {
            subHandler = invitationHandler;
        } 
        if (subHandler != null) {
            subHandler.startElement(uri, localName, qName, attrs);
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public void endElement(String uri, String localName, String qName) throws SAXException {
        super.endElement(uri, localName, qName);
        if ("bags".equals(qName) || ("template-queries").equals(qName)
            || "queries".equals(qName) ||  "items".equals(qName) || "tags".equals(qName)
            || "preferences".equals(qName) || "invitations".equals(qName)) {
            subHandler = null;
        } 
Contextual code suggestions in your IDE  Get Codota for Java