WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

XPathResult

This object is available to unprivileged JavaScript. It implements the following interfaces:

Constants

short ANY_TYPE = 0
short NUMBER_TYPE = 1
short STRING_TYPE = 2
short BOOLEAN_TYPE = 3
short UNORDERED_NODE_ITERATOR_TYPE = 4
short ORDERED_NODE_ITERATOR_TYPE = 5
short UNORDERED_NODE_SNAPSHOT_TYPE = 6
short ORDERED_NODE_SNAPSHOT_TYPE = 7
short ANY_UNORDERED_NODE_TYPE = 8
short FIRST_ORDERED_NODE_TYPE = 9

Properties

readonly boolean booleanValue

readonly boolean invalidIteratorState

readonly double numberValue

readonly short resultType

readonly Node singleNodeValue

readonly int snapshotLength

readonly String stringValue


Methods

Node iterateNext ( ) Node snapshotItem ( int index )

Node iterateNext ( )


Node snapshotItem ( int index )

Arguments:
index

Reference documentation is generated from Mozilla's source.