CloneNode Method (String)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates a duplicate of the node and changes its name at the same time.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public HtmlNode CloneNode(
	string newName
)
Visual Basic
Public Function CloneNode ( _
	newName As String _
) As HtmlNode
Visual C++
public:
HtmlNode^ CloneNode(
	String^ newName
)

Parameters

newName
Type: System..::..String
The new name of the cloned node. May not be null.

Return Value

The cloned node.

See Also