question: public static Document createNewDomFromNode ( Node toClone ) { Document newDoc = createDomDocument ( ) ; Node importedNode = newDoc . importNode ( toClone , true ) ; newDoc . appendChild ( importedNode ) ; return newDoc ; }
target:  Creates a new Docume1nt with the Node toClone as root Element Can be used to clone a Document with createNewDomFromNode(rootToClone)