HtmlDocumentGetNodesWithAttribute Method

Return an array of nodes having the specified Attribute.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlNodeItem[] GetNodesWithAttribute(
	HtmlDocument document,
	string attributeName
)

Parameters

document  HtmlDocument
Instance of the Html Document from which the Nodes will be retrieved.
attributeName  String
Name of the attribute to search for.

Return Value

HtmlNodeItem
Array of Nodes containing the specified Attribute, if found. Otherwise, a zero length array.

See Also