public Node close(final boolean simpleEnd) throws IOException {
  assert (m_open);
  if (emptyBody()) {
    if (simpleEnd) {
      m_writer.write(">");
    }
 else {
      m_writer.write("/>");
    }
  }
 else {
    m_writer.write("</" + m_tag + "\n>");
  }
  m_open=false;
  if (m_parent == null) {
    m_writer.flush();
  }
  return m_parent;
}

public Node close ( final boolean simpleEnd ) throws IOException { assert ( m_open ) ; if ( emptyBody ( ) ) { if ( simpleEnd ) { m_writer . write ( ">" ) ; } else { m_writer . write ( "/>" ) ; } } else { m_writer . write ( "</" + m_tag + "\n>" ) ; } m_open = false ; if ( m_parent == null ) { m_writer . flush ( ) ; } return m_parent ; }
close the open element .
