XPathResult extension type

The XPathResult interface represents the results generated by evaluating an XPath expression within the context of a given node.

Since XPath expressions can result in a variety of result types, this interface makes it possible to determine and handle the type and value of the result.

on
Implemented types

Properties

booleanValue bool
no setter
hashCode int
The hash code for this object.
no setterinherited
invalidIteratorState bool
no setter
numberValue num
no setter
resultType int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleNodeValue Node?
no setter
snapshotLength int
no setter
stringValue String
no setter

Methods

iterateNext() Node?
The iterateNext() method of the XPathResult interface iterates over a node set result and returns the next node from it or null if there are no more nodes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
snapshotItem(int index) Node?
The snapshotItem() method of the XPathResult interface returns an item of the snapshot collection or null in case the index is not within the range of nodes. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

ANY_TYPE int
no setter
ANY_UNORDERED_NODE_TYPE int
no setter
BOOLEAN_TYPE int
no setter
FIRST_ORDERED_NODE_TYPE int
no setter
NUMBER_TYPE int
no setter
ORDERED_NODE_ITERATOR_TYPE int
no setter
ORDERED_NODE_SNAPSHOT_TYPE int
no setter
STRING_TYPE int
no setter
UNORDERED_NODE_ITERATOR_TYPE int
no setter
UNORDERED_NODE_SNAPSHOT_TYPE int
no setter