class js.html.XPathResult

Available on js

Refer to nsIDOMXPathResult for more detail.

Documentation for this class was provided by MDN.

Class Fields

static var ANY_TYPE:Int

A result set containing whatever type naturally results from evaluation of the expression. Note that if the result is a node-set then UNORDEREDNODEITERATOR_TYPE is always the resulting type.

static var ANY_UNORDERED_NODE_TYPE:Int

A result node-set containing any single node that matches the expression. The node is not necessarily the first node in the document that matches the expression.

static var BOOLEAN_TYPE:Int

A result containing a single boolean value. This is useful for example, in an XPath expression using the not() function.

static var FIRST_ORDERED_NODE_TYPE:Int

A result node-set containing the first node in the document that matches the expression.

static var NUMBER_TYPE:Int

A result containing a single number. This is useful for example, in an XPath expression using the count() function.

static var ORDERED_NODE_ITERATOR_TYPE:Int

A result node-set containing all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document.

static var ORDERED_NODE_SNAPSHOT_TYPE:Int

A result node-set containing snapshots of all the nodes matching the expression. The nodes in the result set are in the same order that they appear in the document.

static var STRING_TYPE:Int

A result containing a single string.

static var UNORDERED_NODE_ITERATOR_TYPE:Int

A result node-set containing all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document.

static var UNORDERED_NODE_SNAPSHOT_TYPE:Int

A result node-set containing snapshots of all the nodes matching the expression. The nodes may not necessarily be in the same order that they appear in the document.

Instance Fields

var booleanValue:Bool

readonly boolean Getter throws DOMException.

var invalidIteratorState:Bool

readonly boolean

var numberValue:Float

readonly float Getter throws DOMException.

var resultType:Int

readonly integer (short)

var singleNodeValue:Node

readonly Node Getter throws DOMException.

var snapshotLength:Int

readonly Integer Getter throws DOMException.

var stringValue:String

readonly String Getter throws DOMException.

function iterateNext():Node

function snapshotItem(index:Int):Node