XPathExpression extension type

This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information from its tree.

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.

Objects of this type are created by calling XPathEvaluator.createExpression.

on
Implemented types

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

evaluate(Node contextNode, [int type, XPathResult? result]) XPathResult
The evaluate() method of the XPathExpression 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