<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.prettyPrint.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.prettyPrint</api:function-name><api:suggest>xdmp.prettyprint</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>prettyprint</api:suggest><api:function-link mode="xquery" fullname="xdmp:pretty-print">/apidoc/8.0/xdmp:pretty-print.xml</api:function-link><api:function mode="javascript" name="prettyPrint" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.prettyPrint"><api:summary>
  Returns a well-formatted XQuery module.
</api:summary><api:params><api:param name="xquery" type="xs:string" optional="false"><api:param-description>
    An XQuery module to be reformatted.
  </api:param-description><api:param-name>xquery</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.prettyPrint("for $x in 1 to 10 return $x");
=&gt; "for $x in 1 to 10
    return $x"
</pre></api:example></api:function></api:function-page>