X PA TH_ RE TU RN_ TY PE S
Type: Object
The possible values of the returnType prop in the FxXPath component.
These values are exposed on the FxXPath component
Static properties
A NY_ TY PE
Type: Number
Returns the result of the query, can be anything depending on the query
B OO LE AN_ TY PE
Type: Number
Resolves to true or false, uses the effective boolean value to determine the result. count(1)
resolves to true, count(())
resolves to false
F IR ST_ NO DE_ TY PE
Type: Number
Resolves to the first node XPATH_RETURN_TYPES.NODES_TYPE would have resolved to.
N OD ES_ TY PE
Type: Number
Resolve to all nodes the FxXPath resolves to. Returns nodes in the order the FxXPath would. Meaning (//a, //b)
resolves to all A nodes, followed by all B nodes. //*[self::a or
self::b]
resolves to A and B nodes in document order.
N UM BE R_ TY PE
Type: Number
Resolve to a number, like count((1,2,3))
resolves to 3.
N UM BE RS_ TY PE
Type: Number
Resolve to an array of numbers
S TR IN G_ TY PE
Type: Number
Resolve to a string, like //someElement[1]
resolves to the text content of the first someElement
S TR IN GS_ TY PE
Type: Number
Resolve to an array of strings