code: public static Element appendElement(Element parent, String tagName,
              String value) {
          Element child = appendElement(parent, tagName);
          child.appendChild(child.getOwnerDocument().createTextNode(value));
          return child;
      }
docs: Appends the child element as well as value to the parent element.
  
  @param parent the parent element
  @param tagName the child element name
  @param value the child element value
  @return the child element added to the parent element