XPathEvaluator extension type

The XPathEvaluator interface allows to compile and evaluate expressions.

on
Implemented types

Constructors

XPathEvaluator()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createExpression(String expression, [XPathNSResolver? resolver]) XPathExpression
This method compiles an XPathExpression which can then be used for (repeated) evaluations of the expression.
createNSResolver(Node nodeResolver) Node
This method adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.
evaluate(String expression, Node contextNode, [XPathNSResolver? resolver, int type, XPathResult? result]) XPathResult
The evaluate() method of the XPathEvaluator interface executes an XPath expression on the given node or document and returns an XPathResult.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited