public static Element appendElement ( Element parent , String tagName , String value ) { Element child = appendElement ( parent , tagName ) ; child . appendChild ( child . getOwnerDocument ( ) . createTextNode ( value ) ) ; return child ; }
Appends the child element as well as value to the parent element .