Discuss this help topic in SecureBlackbox Forum

TElXMLDOMNode.CloneNode

TElXMLDOMNode     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Creates a copy of the current node.

Declaration

[C#/Java]
    TElXMLDOMNode CloneNode(bool Deep);
    TElXMLDOMNode CloneNode(bool Deep, TElXMLDOMDocument aCloneOwner);

[VB.NET]
    Function CloneNode(ByVal Deep As Boolean) As TElXMLDOMNode
    Function CloneNode(ByVal Deep As Boolean, ByVal aCloneOwner As TElXMLDOMDocument) As TElXMLDOMNode

[Pascal]
    function CloneNode(Deep : boolean) : TElXMLDOMNode;
    function CloneNode(Deep : boolean; aCloneOwner : TElXMLDOMDocument) : TElXMLDOMNode;

[C++]
    TElXMLDOMNodeHandle CloneNode(bool Deep);
    TElXMLDOMNodeHandle CloneNode(bool Deep, TElXMLDOMDocument &aCloneOwner);
    TElXMLDOMNodeHandle CloneNode(bool Deep, TElXMLDOMDocument *aCloneOwner);

[PHP]
    TElXMLDOMNode CloneNode(bool $Deep)
    TElXMLDOMNode CloneNode(bool $Deep, TElXMLDOMDocument $aCloneOwner)

Parameters

  • Deep - Specifies where "deep" copy should be made.
  • aCloneOwner - The owner for the newly created node.

Description

    Use this method to create a copy of the node. Deep parameter specifies whether shallow or deep copy should be made. Shallow copy only copies node properties, while deep copy copies node properties and clones all child nodes.

     aCloneOwner parameter specifies the owner document for the new node. If this parameter is not passed (i.e. the method with one parameter is called), the owner of the node, which is being copied, is used.

See also:     ChildNodes     OwnerDocument    

Discuss this help topic in SecureBlackbox Forum