public static void appendElement ( Element parent , Element child ) { Node tmp = parent . getOwnerDocument ( ) . importNode ( child , true ) ; parent . appendChild ( tmp ) ; }
Appends another element as a child element .