Evaluates an XPath expression that returns XPath node-set and returns the result. This method is the same as the result of Select (Compile (xpath)).
- expr
- An System.Xml.XPath.XPathExpression instance that represents an XPath expression.
An stem.Xml.XPath.XPathNodeIterator instance that holds all the results.
To evaluate such XPath expression that contains certain namespace prefixes, the argument expression must be supplied XmlNamespaceManager via XPathExpression.SetContext method. If no matching namespace prefix were found in the XPath expression, an System.Xml.XPath.XPathException is thrown.
Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0