Interface XPathEvaluator
interface XPathEvaluator {
createExpression(expression: string, resolver?: XPathNSResolver): XPathExpression;
createNSResolver(nodeResolver: Node): Node;
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver, type?: number, result?: XPathResult): XPathResult;
}
createExpression(expression: string, resolver?: XPathNSResolver): XPathExpression;
createNSResolver(nodeResolver: Node): Node;
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver, type?: number, result?: XPathResult): XPathResult;
}
Hierarchy
- XPathEvaluatorBase
- XPathEvaluator (view full)
Index
Methods
createExpression
- create
Expression (expression, resolver?): XPathExpression Parameters
- expression: string
Optional
resolver: XPathNSResolver
Returns XPathExpression
createNSResolver
evaluate
- evaluate(expression, contextNode, resolver?, type?, result?): XPathResult
Parameters
- expression: string
- contextNode: Node
Optional
resolver: XPathNSResolverOptional
type: numberOptional
result: XPathResult
Returns XPathResult
The XPathEvaluator interface allows to compile and evaluate XPath expressions.
MDN Reference