Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
fn.string( [$arg as String?] ) as String?
Returns the value of $arg represented as an xs:string
. If no
argument is supplied, this function returns the string value of the
context item (.).
Parameters | |
---|---|
$arg | The item to be rendered as a string. |
If $arg is the empty sequence, the zero-length string is returned.
If $arg is a node, the function returns the string-value of the node, as obtained using the dm:string-value accessor.
If $arg is an atomic value, then the function returns the same string as is returned by the expression:$arg cast as xs:string
var x = fn.head(xdmp.unquote('<hello>hello<goodbye>goodbye</goodbye></hello>') ).xpath("/hello"); fn.string(x); => hellogoodbye
Comments