fn.data( arg as Sequence ) as Sequence
Takes a sequence of items and returns a sequence of atomic values.
The fn:data
function returns the sequence of atomic values
produced by applying the following rules to each item in $arg:
fn:data
returns the typed value of the node as
defined by the accessor function dm:typed-value in Section 5.15
typed-value Accessor[DM].Parameters | |
---|---|
arg | The items whose typed values are to be returned. |
var x = fn.head(xdmp.unquote('<hello>hello <goodbye>goodbye</goodbye></hello>') ).xpath("/hello"); fn.data(x); => hello goodbye
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.