Export (0) Print
Expand All

XmlSignificantWhitespace.CloneNode Method

Creates a duplicate of this node.

[Visual Basic]
Overrides Public Function CloneNode( _
   ByVal deep As Boolean _
) As XmlNode
[C#]
public override XmlNode CloneNode(
 bool deep
);
[C++]
public: XmlNode* CloneNode(
 bool deep
);
[JScript]
public override function CloneNode(
   deep : Boolean
) : XmlNode;

Parameters

deep
true to recursively clone the subtree under the specified node; false to clone only the node itself. For significant white space nodes, the cloned node always includes the data value, regardless of the parameter setting.

Return Value

The cloned node.

Remarks

CloneNode serves as a copy constructor for nodes. To see how this method behaves with other node types, see XmlNode.CloneNode.

The cloned node has no parent. ParentNode returns a null reference (Nothing in Visual Basic).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

XmlSignificantWhitespace Class | XmlSignificantWhitespace Members | System.Xml Namespace

Show:
© 2014 Microsoft