Creates a new node that is an exact clone of this node.
Set objXMLDOMNode = oXMLDOMNode.cloneNode(deep)
HRESULT cloneNode( VARIANT_BOOL deep, IXMLDOMNode **cloneRoot);
The cloned node has the same property values as this node for the following properties: nodeName, nodeValue, nodeType, parentNode, ownerDocument, and (if it is an element) attributes. The value of the clone's childNodes collection depends on the setting of the deep parameter flag.
Note If the node is the IXMLDOMDocument node, it is safer to clone the document using the save method, as follows:
doc.save(doc2);