XPathResult

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

MDN Reference

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface ResultType

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The read-only booleanValue property of the The return value is the boolean value of the XPathResult returned by In case XPathResult.resultType is not BOOLEAN_TYPE, a The following example shows the use of the booleanValue property.

Link copied to clipboard

The read-only invalidIteratorState property of the is true if XPathResult.resultType is UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE and the document has been modified since this result was returned.

Link copied to clipboard
Link copied to clipboard

The read-only numberValue property of the The return value is the numeric value of the XPathResult returned by In case XPathResult.resultType is not NUMBER_TYPE, a The following example shows the use of the numberValue property.

Link copied to clipboard

The read-only resultType property of the the type constants.

Link copied to clipboard

The read-only singleNodeValue property of the null in case no node was matched of a result with FIRST_ORDERED_NODE_TYPE.

Link copied to clipboard

The read-only snapshotLength property of the snapshot.

Link copied to clipboard
Link copied to clipboard

The read-only stringValue property of the The return value is the string value of the XPathResult returned by In case XPathResult.resultType is not STRING_TYPE, a The following example shows the use of the stringValue property.

Functions

Link copied to clipboard

The iterateNext() method of the next node from it or null if there are no more nodes.

Link copied to clipboard
fun snapshotItem(index: Int): Node?

The snapshotItem() method of the null in case the index is not within the range of nodes.