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: 8.1.3.0 (8.1.3.20220620)
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