Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Extensions.XPathEvaluate Method

Evaluates an XPath expression.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member XPathEvaluate(XNode, String) Evaluates an XPath expression.
Public method Static member XPathEvaluate(XNode, String, IXmlNamespaceResolver) Evaluates an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver.
Top

Although the ordering of returned collections is not specified in the XML XPath Language 1.0 Recommendation, this extension method returns nodes in document order.

Note that nodes are returned in document order even when you use a reverse axis, such as preceding-sibling or ancestor-or-self.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.