Class XPathExpression
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
This is useful when an expression will be reused in an application, because it is just compiled once and all namespace prefixes which occur within the expression are preresolved.
[Value("XPathExpression")]
public class XPathExpression
- Inheritance
-
XPathExpression
- Inherited Members
Remarks
Objects of this type are created by calling XPathEvaluator.CreateExpression.
-Document.CreateExpression
-XPathResult
Constructors
XPathExpression()
public XPathExpression()
Methods
Evaluate(Node, ushort, XPathResult?)
The evaluate() method of the
XPathExpression interface executes an XPath expression on the given node or document and
returns an XPathResult.
[Value("evaluate")]
public XPathResult Evaluate(Node contextNode, ushort type = 0, XPathResult? result = null)
Parameters
contextNodeNodetypeushortresultXPathResult
Returns
- XPathResult
An XPathResult object representing the result of evaluating the XPath
expression.