MarkLogic 10 Product Documentation
fn:data

fn:data(
   $arg as item()*
) as xs:anyAtomicType*

Summary

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:

Parameters
arg The items whose typed values are to be returned.

Example

let $x := <hello>hello
            <goodbye>goodbye</goodbye>
          </hello>
return
fn:data($x)

=> hello goodbye
Powered by MarkLogic Server | Terms of Use | Privacy Policy