public static Element addElement ( final Element parent , final String name ) { final Element ele = parent . getOwnerDocument ( ) . createElement ( name ) ; parent . appendChild ( ele ) ; return ele ; }
Create a new element and add it as the last child