Platforms to show: All Mac Windows Linux Cross-Platform

Back to XMLXPathResultMBS class.

XMLXPathResultMBS.BooleanValue as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the boolean value of this result.

Raises exception if ResultType is not ResultTypeBoolean (XPath 1.0) or if current result cannot be properly converted to boolean (XPath 2.0).
Raises exception if there is no current result in the result object (XPath 2.0).
(Read only property)

XMLXPathResultMBS.IntegerValue as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the integer value of this result (XPath 2 only).

The value of this integer result.
Raises exception if current result cannot be properly converted to int (XPath 2.0).
Raises exception if there is no current result in the result object (XPath 2.0).
(Read only property)

XMLXPathResultMBS.InvalidIteratorState as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Signifies that the iterator has become invalid.

True if ResultType is ResultTypeUnorderedNodeIterator or ResultTypeOrderedNodeIterator (XPath 1.0) or ResultTypeIteratorResult (XPath 2.0) and the document has been modified since this result was returned.

Raises exception if ResultType is not ResultTypeUnorderedNodeIterator or ResultTypeOrderedNodeIterator (XPath 1.0) or if ResultType is not ResultTypeIteratorResult (XPath 2.0).
(Read only property)

XMLXPathResultMBS.isNode as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns true if the result has a current result and the value is a node (XPath 2 only).

This function is necessary to distinguish between a string value and a node of type string as returned by the TypeInfo() function.
(Read only property)

XMLXPathResultMBS.NodeValue as XMLNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the node value of this result.

The value of this node result, which may be nil.
Raises exception if ResultType is not ResultTypeAnyUnorderedNode, ResultTypeFirstOrderedNode, ResultTypeUnorderedNodeIterator, ResultTypeOrderedNodeIterator, ResultTypeUnorderedNodeSnapshot, or ResultTypeOrderedNodeSnapshot (XPath 1.0) or if current result is not a node (XPath 2.0). Raises exception if there is no current result in the result object.
(Read only property)

XMLXPathResultMBS.NumberValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the number value of this result.

If the native double type of the DOM binding does not directly support the exact IEEE 754 result of the XPath expression, then it is up to the definition of the binding to specify how the XPath number is converted to the native binding number.
Raises exception if ResultType is not ResultTypeNumber (XPath 1.0) or if current result cannot be properly converted to double (XPath 2.0).
Raises exception if there is no current result in the result object (XPath 2.0).
(Read only property)

XMLXPathResultMBS.ResultType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the result type of this result.

A code representing the type of this result, as defined by the type constants.
(Read only property)

XMLXPathResultMBS.SnapshotLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of items in the result snapshot.

Valid values for snapshotItem indices are 0 to snapshotLength-1 inclusive.

Raises exception if ResultType is not ResultTypeUnorderedNodeSnapshot or ResultTypeOrderedNodeSnapshot (XPath 1.0) or if ResultType is not ResultTypeSnapshotResult (XPath 2.0).
(Read only property)

Some examples using this property:

XMLXPathResultMBS.StringValue as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the string value of this result.

The value of this string result.
Raises exception if ResultType is not ResultTypeString (XPath 1.0) or if current result cannot be properly converted to string (XPath 2.0).
Raises exception if there is no current result in the result object (XPath 2.0).
(Read only property)

XMLXPathResultMBS.TypeInfo as XMLTypeInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XML MBS XML Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the DOM type info of the current result node or value (XPath 2 only).

(Read only property)

The items on this page are in the following plugins: MBS XML Plugin.


The biggest plugin in space...