System.Xml.XmlCDataSection.CloneNode Method

Creates a duplicate of this node.

Syntax

public override XmlNode CloneNode (bool deep)

Parameters

deep
true to recursively clone the subtree under the specified node; false to clone only the node itself. Because CDATA nodes do not have children, regardless of the parameter setting, the cloned node will always include the data content.

Returns

The cloned node.

Remarks

CloneNode serves as a copy constructor for nodes. To see how this method behaves with other node types, see the XmlNode.CloneNode(bool) method in the XmlNode class.

The cloned node has no parent (XmlNode.ParentNode returns null).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0