/** * This method is called at the end of an element. * * @param tagName the tag name. * @throws SAXException if there is a parsing error. */ public final void endElement( final String uri, final String tagName ) throws SAXException { if ( this.tagName.equals( tagName ) && this.uri.equals( uri ) ) { doneParsing(); this.rootHandler.unwind( uri, tagName ); } else { throw new ParseException( "Illegal Parser State." + toString(), getLocator() ); } }