public void endElement() throws IOException {
  String elementQName=elementStack.pop();
  nsStack.pop();
  if (writingStartTag) {
    writer.write("/>");
    writingStartTag=false;
    return;
  }
  writer.write("</");
  writer.write(elementQName);
  writer.write('>');
}

public void endElement ( ) throws IOException { String elementQName = elementStack . pop ( ) ; nsStack . pop ( ) ; if ( writingStartTag ) { writer . write ( "/>" ) ; writingStartTag = false ; return ; } writer . write ( "</" ) ; writer . write ( elementQName ) ; writer . write ( '>' ) ; }
writes the end element tag for the open element .
