public void endElement(String uri, String localname, String qName) throws SAXException { elementCount--; if (elementCount > 0) super.endElement(uri, localname, qName); }
public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { elementCount++; if (elementCount > 1) super.startElement(uri, localname, qName, attributes); }