code: @Override
      public void endElement(String namespaceURI, String localName, String qName)
              throws SAXException {
          try {
              if (XHTML_NS.equals(namespaceURI)
                      && Arrays.binarySearch(emptyElements, localName) < 0) {
                  this.writer.write("</");
                  this.writer.write(localName);
                  this.writer.write('>');
              }
          } catch (IOException ioe) {
              throw (SAXException)new SAXException(ioe).initCause(ioe);
          }
      }
docs: Writes an end tag if the element is an XHTML element and is not an empty
  element in HTML 4.01 Strict.
  
  @param namespaceURI
  the XML namespace
  @param localName
  the element name in the namespace
  @param qName
  ignored
  
  @throws SAXException
  if there are IO problems