System.Xml.XmlDataDocument.CloneNode Method

Creates a duplicate of the current 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.

Returns

The cloned node.

Remarks

Cloning the XmlDataDocument also clones the System.Data.DataSet schema.

If deep is set to false, the cloned DataSet has no data; that is, no rows.

If deep is set to true, the cloned DataSet is set with the schema and then populated with the data.

See XmlNode.CloneNode(bool) in the XmlNode class to see a table describing how this method behaves with each of the different node types.

Requirements

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