RemoveChild Method (HtmlNode, Boolean)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Removes the specified child node.

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

Syntax

C#
public HtmlNode RemoveChild(
	HtmlNode oldChild,
	bool keepGrandChildren
)
Visual Basic
Public Function RemoveChild ( _
	oldChild As HtmlNode, _
	keepGrandChildren As Boolean _
) As HtmlNode
Visual C++
public:
HtmlNode^ RemoveChild(
	HtmlNode^ oldChild, 
	bool keepGrandChildren
)

Parameters

oldChild
Type: HtmlAgilityPack..::..HtmlNode
The node being removed. May not be null.
keepGrandChildren
Type: System..::..Boolean
true to keep grand children of the node, false otherwise.

Return Value

The node removed.

See Also