Element: selectSingleNode

selectSingleNode

Applies the specified pattern to this node's context and returns the first matching node.

 Public Function selectSingleNode(
	  ByVal queryString As String ) As Element

Parameters

queryString
[ByVal] String. String specifying the XSL or XPath query that is to be applied to the context defined by this node. Whether an XSL or XPath query is used is determined by the value of the SelectionLanguage property. By default, the expression is an XSL pattern query. The SelectionLanguage property can be set with the SetProperty method.

Return Values

Element -  First node that is selected by the XPath query. If no nodes result from the query, it returns Nothing.

Remarks

SelectionLanguage and SetProperty properties are not implemented.

See Also

Project VBDOM Overview Class Element Overview Element Properties Element Methods selectNodes setAttribute