Loading TOC...

xdmp.xqueryEval

xdmp.xqueryEval(
   xquery as String,
   [vars as Object],
   [options as Object?]
) as ValueIterator

Summary

Returns the result of evaluating a string as an XQuery module. For details, see the XQuery function xdmp:eval.

Parameters
xquery For details, see the XQuery function xdmp:eval.
vars For details, see the XQuery function xdmp:eval.
options The options are the same as those documented with xdmp.eval.

Example

xdmp.xqueryEval(" 'hello world, today is: ', fn:current-dateTime() ");
=>
hello world, today is: 
2015-01-21T14:24:50.453913-08:00

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.