public void endElement(String namespaceURI,String localName,String qName) throws SAXException {
  try {
    if (started) {
      out.write(" />");
    }
 else {
      out.write("</" + qName + ">");
    }
    started=false;
  }
 catch (  IOException ioe) {
    throw new SAXException(ioe);
  }
}

public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { try { if ( started ) { out . write ( " />" ) ; } else { out . write ( "</" + qName + ">" ) ; } started = false ; } catch ( IOException ioe ) { throw new SAXException ( ioe ) ; } }
description of the method
