System.Xml.XPath.XPathNavigator.SelectSingleNode Method

Selects a single node in the System.Xml.XPath.XPathNavigator using the specified XPath query.

Syntax

public virtual XPathNavigator SelectSingleNode (string xpath)

Parameters

xpath
A string representing an XPath expression.

Returns

An System.Xml.XPath.XPathNavigator object that contains the first matching node for the XPath query specified; otherwise, null if there are no query results.

Remarks

The XPathNavigator.SelectSingleNode(string) method selects the first node that matches the XPath query in the System.Xml.XPath.XPathNavigator object.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0