XmlNodeExtensions.XPathSelectNodes Method (XmlNode, string)XmlNodeExtensions.XPathSelectNodes Method (XmlNode, String)XmlNodeExtensions::XPathSelectNodes Method (XmlNode^, 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 XPathSelectNodes( _ node As System.Xml.XmlNode, _ expression As String _ ) As System.Xml.XmlNodeList
public static System.Xml.XmlNodeList XPathSelectNodes( System.Xml.XmlNode node, string expression )
public: static System.Xml::XmlNodeList^ XPathSelectNodes( System.Xml::XmlNode^ node, String^ expression )
Parameters
- node
Type: System.Xml.XmlNodeSystem.Xml.XmlNodeSystem.Xml::XmlNode^
- expression
Return Value
Type: System.Xml.XmlNodeListSystem.Xml.XmlNodeListSystem.Xml::XmlNodeList^
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. |