code: public void printElement(String elementName, Object value) {
      println("<" + elementName + ">" + (value == null ? "" : escape(value.toString())) + "</" + elementName + ">");
    }
docs: Output a complete element with the given content.
  @param elementName Name of element.
  @param value Content of element.