private static void appendTextElement(Document doc,Node parent,String name,String value){
  Element e=doc.createElement(name);
  e.appendChild(doc.createTextNode(value));
  parent.appendChild(e);
}

private static void appendTextElement ( Document doc , Node parent , String name , String value ) { Element e = doc . createElement ( name ) ; e . appendChild ( doc . createTextNode ( value ) ) ; parent . appendChild ( e ) ; }
utility method to create and append a new element in the xml tree . creates a new element and appends it to the given parent node .
