question: 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 ) ; }
target:  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.