protected void writeCloseTag(String nsAlias,String name) throws IOException {
  Element element=currentElement();
  if (element.openTagEnded) {
    if (isPrettyPrintingEnabled()) {
      writeNewline();
      writeIndentation();
    }
    writer.write("</");
    writeQualifiedName(nsAlias,name);
    writer.write(">");
  }
 else {
    writer.write("/>");
  }
}

protected void writeCloseTag ( String nsAlias , String name ) throws IOException { Element element = currentElement ( ) ; if ( element . openTagEnded ) { if ( isPrettyPrintingEnabled ( ) ) { writeNewline ( ) ; writeIndentation ( ) ; } writer . write ( "</" ) ; writeQualifiedName ( nsAlias , name ) ; writer . write ( ">" ) ; } else { writer . write ( "/>" ) ; } }
writes the closing tag of an element , after all nested elements and value text have been written .
