Class XPathNavigatorExtensions
Provides extensions to XPathNavigator.
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class XPathNavigatorExtensions
Methods
View SourceSelect(XPathNavigator, String, XPathVariable[])
Selects a node set, using the specified XPath expression.
Declaration
public static XPathNodeIterator Select(this XPathNavigator navigator, string expression, params XPathVariable[] variables)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Xml.XPath.XPathNavigator | navigator | A source XPathNavigator. |
| System.String | expression | An XPath expression. |
| XPathVariable[] | variables | A set of XPathVariables. |
Returns
| Type | Description |
|---|---|
| System.Xml.XPath.XPathNodeIterator | An iterator over the nodes matching the specified expression. |
Select(XPathNavigator, XPathExpression, XPathVariable[])
Selects a node set, using the specified XPath expression.
Declaration
public static XPathNodeIterator Select(this XPathNavigator navigator, XPathExpression expression, params XPathVariable[] variables)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Xml.XPath.XPathNavigator | navigator | A source XPathNavigator. |
| System.Xml.XPath.XPathExpression | expression | An XPath expression. |
| XPathVariable[] | variables | A set of XPathVariables. |
Returns
| Type | Description |
|---|---|
| System.Xml.XPath.XPathNodeIterator | An iterator over the nodes matching the specified expression. |