XPathResult
The XPathResult
interface represents the results generated by evaluating an XPath expression within the context of a given node.
Properties
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.
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.
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.
The read-only resultType
property of the the type constants.
The read-only singleNodeValue
property of the null
in case no node was matched of a result with FIRST_ORDERED_NODE_TYPE
.
The read-only snapshotLength
property of the snapshot.
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.