The XPathResult interface represents the results generated by an XPath expression within the context of a given node.
The XPathResult interface represents the results generated by an XPath expression within the context of a given node.
(boolean-value this)
Property.
[Read Only]
The read-only booleanValue property of the web.xpath.XPathResult
returns the boolean value of a result with XPathResult.resultType
BOOLEAN_TYPE.
var value = result.booleanValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/booleanValue
Property. [Read Only] The read-only booleanValue property of the `web.xpath.XPathResult` returns the boolean value of a result with `XPathResult.resultType` BOOLEAN_TYPE. `var value = result.booleanValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/booleanValue`
(invalid-iterator-state this)
Property.
[Read Only]
The read-only invalidIteratorState property of the web.xpath.XPathResult
signifies that the iterator has become invalid. It is true if
is UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE
the document has been modified since this result was returned.
var iteratorState = result.invalidIteratorState;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/invalidIteratorState
Property. [Read Only] The read-only invalidIteratorState property of the `web.xpath.XPathResult` signifies that the iterator has become invalid. It is true if is UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE the document has been modified since this result was returned. `var iteratorState = result.invalidIteratorState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/invalidIteratorState`
(iterate-next this)
Method.
The iterateNext() method of the web.xpath.XPathResult
interface
over a node set result and returns the next node from it or null
there are no more nodes.
var node = result.iterateNext();
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/iterateNext
Method. The iterateNext() method of the `web.xpath.XPathResult` interface over a node set result and returns the next node from it or null there are no more nodes. `var node = result.iterateNext();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/iterateNext`
(number-value this)
Property.
[Read Only]
The read-only numberValue property of the web.xpath.XPathResult
returns the numeric value of a result with XPathResult.resultType
NUMBER_TYPE.
var value = result.numberValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/numberValue
Property. [Read Only] The read-only numberValue property of the `web.xpath.XPathResult` returns the numeric value of a result with `XPathResult.resultType` NUMBER_TYPE. `var value = result.numberValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/numberValue`
(result-type this)
Property.
[Read Only]
The read-only resultType property of the web.xpath.XPathResult
represents the type of the result, as defined by the type constants.
var resultType = result.resultType;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/resultType
Property. [Read Only] The read-only resultType property of the `web.xpath.XPathResult` represents the type of the result, as defined by the type constants. `var resultType = result.resultType;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/resultType`
(single-node-value this)
Property.
[Read Only]
The read-only singleNodeValue property of the web.xpath.XPathResult
returns a web.Node
value or null in case no node was matched
a result with XPathResult.resultType
being ANY_UNORDERED_NODE_TYPE
FIRST_ORDERED_NODE_TYPE.
var value = result.singleNodeValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/singleNodeValue
Property. [Read Only] The read-only singleNodeValue property of the `web.xpath.XPathResult` returns a `web.Node` value or null in case no node was matched a result with `XPathResult.resultType` being ANY_UNORDERED_NODE_TYPE FIRST_ORDERED_NODE_TYPE. `var value = result.singleNodeValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/singleNodeValue`
(snapshot-item this i)
Method.
The snapshotItem() method of the web.xpath.XPathResult
interface
an item of the snapshot collection or null in case the index
not within the range of nodes. Unlike the iterator result, the
does not become invalid, but may not correspond to the current
if it is mutated.
var node = result.snapshotItem(i);
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotItem
Method. The snapshotItem() method of the `web.xpath.XPathResult` interface an item of the snapshot collection or null in case the index not within the range of nodes. Unlike the iterator result, the does not become invalid, but may not correspond to the current if it is mutated. `var node = result.snapshotItem(i);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotItem`
(snapshot-length this)
Property.
[Read Only]
The read-only snapshotLength property of the web.xpath.XPathResult
represents the number of nodes in the result snapshot.
var snapshotLength = result.snapshotLength;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotLength
Property. [Read Only] The read-only snapshotLength property of the `web.xpath.XPathResult` represents the number of nodes in the result snapshot. `var snapshotLength = result.snapshotLength;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotLength`
(string-value this)
Property.
[Read Only]
The read-only stringValue property of the web.xpath.XPathResult
returns the string value of a result with XPathResult.resultType
STRING_TYPE.
var value = result.stringValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/stringValue
Property. [Read Only] The read-only stringValue property of the `web.xpath.XPathResult` returns the string value of a result with `XPathResult.resultType` STRING_TYPE. `var value = result.stringValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/stringValue`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close