public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { super.startElement(uri, localName, qName, attributes); if (qName.compareTo(DESC_NESTED_ELEM[2]) == 0) { // Element // Note: No need to check if attributes object is null // Parser returns empty attributes object if no attributes // Remember the last element fElementName = attributes.getValue(NAME_ATTR); } }
protected void reset() { super.reset(); fDescription = new StringBuffer(); fElementName = null; }