code: private void transformEndElement(Node node) {
  
          // check hat kind of node we have
          String nodeName = node.getNodeName();
  
          // the <HTML> and <BODY> node must be skipped
          if (nodeName.equals(NODE_HTML) || nodeName.equals(NODE_BODY)) {
              // do nothing here
          } else {
              // only do some output if we are in writing mode
              if (m_write) {
                  m_tempString.append("</");
                  m_tempString.append(nodeName);
                  m_tempString.append(">");
  
                  // append a "\n" to output String if possible
                  if (m_enterTags.contains(node.getNodeName())) {
                      m_tempString.append("\n");
                  }
              }
          }
      }
docs: Transform element nodes and create end tags in output.<p>
  
  @param node actual element node