Click or drag to resize

HtmlNodeCloneNode Method (String, Boolean)

Creates a duplicate of the node and changes its name at the same time.

Namespace:  WorkflowGen.My.HtmlAgilityPack
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.7.2.0 (4.7.2.0)
Syntax
public HtmlNode CloneNode(
	string newName,
	bool deep
)

Parameters

newName
Type: SystemString
The new name of the cloned node. May not be null.
deep
Type: SystemBoolean
true to recursively clone the subtree under the specified node; false to clone only the node itself.

Return Value

Type: HtmlNode
The cloned node.
See Also