Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Creates a new node that is an exact clone of this node.
Syntax
HRESULT cloneNode( VARIANT_BOOL deep, IDOMNode ** cloneRoot);
Parameters
- deep
- [in] Flag that indicates whether to recursively clone all nodes that are descendants of this node. If true, create a clone of the complete tree below this node. If false, clone this node and its attributes only.
- cloneRoot
- [out] Newly created clone node.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
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 property depends on the setting of the deep parameter flag.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.