IsEmptyElement Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Determines if an element node is defined as empty.

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

Syntax

C#
public static bool IsEmptyElement(
	string name
)
Visual Basic
Public Shared Function IsEmptyElement ( _
	name As String _
) As Boolean
Visual C++
public:
static bool IsEmptyElement(
	String^ name
)

Parameters

name
Type: System..::..String
The name of the element node to check. May not be null.

Return Value

true if the name is the name of an empty element node, false otherwise.

See Also