Extensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class contains the LINQ to XML extension methods that enable you to evaluate XPath expressions.
public ref class Extensions abstract sealed
public static class Extensions
type Extensions = class
Public Module Extensions
- Inheritance
-
Extensions
Remarks
There is some performance penalty for using these methods. Using LINQ to XML queries yields better performance.
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
.
Methods
CreateNavigator(XNode) |
Creates an XPathNavigator for an XNode. |
CreateNavigator(XNode, XmlNameTable) |
Creates an XPathNavigator for an XNode. The XmlNameTable enables more efficient XPath expression processing. |
XPathEvaluate(XNode, String) |
Evaluates an XPath expression. |
XPathEvaluate(XNode, String, IXmlNamespaceResolver) |
Evaluates an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver. |
XPathSelectElement(XNode, String) |
Selects an XElement using a XPath expression. |
XPathSelectElement(XNode, String, IXmlNamespaceResolver) |
Selects an XElement using a XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver. |
XPathSelectElements(XNode, String) |
Selects a collection of elements using an XPath expression. |
XPathSelectElements(XNode, String, IXmlNamespaceResolver) |
Selects a collection of elements using an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기