XPathNavigatorExtensions.XPathSelect Method (XPathNavigator, string)XPathNavigatorExtensions.XPathSelect Method (XPathNavigator, String)XPathNavigatorExtensions::XPathSelect Method (XPathNavigator^, String^)
Selects a node set, using the specified XPath 2.0 expression.
- Namespace: XmlPrime.ExtensionMethodsXmlPrime.ExtensionMethodsXmlPrime.ExtensionMethods
- Assembly: XmlPrime.ExtensionMethods (in XmlPrime.ExtensionMethods.dll)
Syntax
Public Shared Function XPathSelect( _ navigator As System.Xml.XPath.XPathNavigator, _ expression As String _ ) As System.Xml.XPath.XPathNodeIterator
public static System.Xml.XPath.XPathNodeIterator XPathSelect( System.Xml.XPath.XPathNavigator navigator, string expression )
public: static System.Xml.XPath::XPathNodeIterator^ XPathSelect( System.Xml.XPath::XPathNavigator^ navigator, String^ expression )
Parameters
- navigator
Type: System.Xml.XPath.XPathNavigatorSystem.Xml.XPath.XPathNavigatorSystem.Xml.XPath::XPathNavigator^
The XPathNavigatorXPathNavigatorXPathNavigator to use as the context item.
- expression
Return Value
Type: System.Xml.XPath.XPathNodeIteratorSystem.Xml.XPath.XPathNodeIteratorSystem.Xml.XPath::XPathNodeIterator^
An XPathNodeIteratorXPathNodeIteratorXPathNodeIterator object that contains the matching nodes for the XPath 2.0 expression specified.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | expression is null
a null reference (Nothing in Visual Basic)
nullptr . |
XdmExceptionXdmExceptionXdmException | An error occurred compiling or evaluating the XPath 2.0 expression. |
InvalidCastExceptionInvalidCastExceptionInvalidCastException | The return type contained an item which was not a node. |