code: public void writeEndElement() throws SAXException {
          processStartElement();
          final QName qName = elementStack.remove(); // pop
          transformer.endElement(qName.uri, qName.localName, qName.qName);
          for (final NamespaceMapping p: qName.mappings) {
              if (p.newMapping) {
                  transformer.endPrefixMapping(p.prefix);
              }
          }
      }
docs: Write end element.
  
  @throws SAXException if processing the event failed