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

interface XPathResult {
    ANY_TYPE: number;
    ANY_UNORDERED_NODE_TYPE: number;
    BOOLEAN_TYPE: number;
    FIRST_ORDERED_NODE_TYPE: number;
    NUMBER_TYPE: number;
    ORDERED_NODE_ITERATOR_TYPE: number;
    ORDERED_NODE_SNAPSHOT_TYPE: number;
    STRING_TYPE: number;
    UNORDERED_NODE_ITERATOR_TYPE: number;
    UNORDERED_NODE_SNAPSHOT_TYPE: number;
    booleanValue: boolean;
    invalidIteratorState: boolean;
    numberValue: number;
    resultType: number;
    singleNodeValue: null | Node;
    snapshotLength: number;
    stringValue: string;
    iterateNext(): null | Node;
    snapshotItem(index): null | Node;
}

Properties

ANY_TYPE: number
ANY_UNORDERED_NODE_TYPE: number
BOOLEAN_TYPE: number
FIRST_ORDERED_NODE_TYPE: number
NUMBER_TYPE: number
ORDERED_NODE_ITERATOR_TYPE: number
ORDERED_NODE_SNAPSHOT_TYPE: number
STRING_TYPE: number
UNORDERED_NODE_ITERATOR_TYPE: number
UNORDERED_NODE_SNAPSHOT_TYPE: number
booleanValue: boolean
invalidIteratorState: boolean
numberValue: number
resultType: number
singleNodeValue: null | Node
snapshotLength: number
stringValue: string

Methods

  • Returns null | Node

  • Parameters

    • index: number

    Returns null | Node