Creates a duplicate of a node.
Syntax
HRESULT CloneNode(
VARIANT_BOOL fDeep,
IHTMLDOMNode **clonedNode
);
Parameters
- fDeep
- VARIANT Boolean structure that specifies whether to clone only the node or to include all children too.
- clonedNode
- Address of a pointer to an IHTMLDOMNode interface that returns the newly created node.
Return Value
Returns S_OK if successful, or an error code otherwise.
See Also
removeNode, replaceNode, swapNode