<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.xqueryEval.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.xqueryEval</api:function-name><api:suggest>xdmp.xqueryeval</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>xqueryeval</api:suggest><api:function mode="javascript" name="xqueryEval" type="builtin" lib="xdmp" category="Extension" subcategory="XQuery Context" class="javascript" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.xqueryEval"><api:summary>
  Returns the result of evaluating a string
  as an XQuery module.  For details, see the XQuery function
  <a href="./xdmp:eval" xmlns="http://www.w3.org/1999/xhtml"><code>xdmp:eval</code></a>.
</api:summary><api:params><api:param name="xquery" type="xs:string" class="javascript"><api:param-description>
    For details, see the XQuery function
    <a href="./xdmp:eval" xmlns="http://www.w3.org/1999/xhtml"><code>xdmp:eval</code></a>.
  </api:param-description><api:param-name>xquery</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="vars" type="Object" optional="true"><api:param-description>
    For details, see the XQuery function
    <a href="./xdmp:eval" xmlns="http://www.w3.org/1999/xhtml"><code>xdmp:eval</code></a>.
  </api:param-description><api:param-name>vars</api:param-name><api:param-type>Object</api:param-type></api:param><api:param name="options" type="(element()|map:map)?" optional="true"><api:param-description>
    The options are the same as those documented with 
    <a href="./xdmp.eval" xmlns="http://www.w3.org/1999/xhtml"><code>xdmp.eval</code></a>.
  </api:param-description><api:param-name>options</api:param-name><api:param-type>Object?</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.xqueryEval(" 'hello world, today is: ', fn:current-dateTime() ");
=&gt;
hello world, today is: 
2015-01-21T14:24:50.453913-08:00
</pre>
</api:example></api:function></api:function-page>