public static Element addChildElement(Element element,String childElementName,Document document){
  Element newElement=document.createElement(childElementName);
  element.appendChild(newElement);
  return newElement;
}

public static Element addChildElement ( Element element , String childElementName , Document document ) { Element newElement = document . createElement ( childElementName ) ; element . appendChild ( newElement ) ; return newElement ; }
creates a child element with the given name and appends it to the element child node list .
