SelectNodes Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Selects a list of nodes matching the XPath expression.

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

Syntax

C#
public HtmlNodeCollection SelectNodes(
	string xpath
)
Visual Basic
Public Function SelectNodes ( _
	xpath As String _
) As HtmlNodeCollection
Visual C++
public:
HtmlNodeCollection^ SelectNodes(
	String^ xpath
)

Parameters

xpath
Type: System..::..String
The XPath expression.

Return Value

An HtmlNodeCollection containing a collection of nodes matching the XPath query, or null if no node matched the XPath expression.

See Also