<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.doc.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.doc</api:function-name><api:suggest>cts.doc</api:suggest><api:suggest>cts</api:suggest><api:suggest>doc</api:suggest><api:function mode="javascript" name="doc" type="builtin" lib="cts" category="SearchBuiltins" subcategory="Search" class="javascript" hidden="false" bucket="MarkLogic Built-In Functions" prefix="cts" namespace="http://marklogic.com/cts" fullname="cts.doc"><api:summary>
  <p xmlns="http://www.w3.org/1999/xhtml">Returns the document stored in the database at the specified URI.</p>
  <p xmlns="http://www.w3.org/1999/xhtml">To retrieve multiple documents stored at multiple URIs, use 
  <code><a href="./fn.doc">fn.doc</a></code> instead.</p>
</api:summary><api:params><api:param name="uri" type="String"><api:param-description>
  The URI of the document to retrieve.
  </api:param-description><api:param-name>uri</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>Node?</api:return><api:usage>
  The <code xmlns="http://www.w3.org/1999/xhtml">document-node()</code> returned contains an
  <code xmlns="http://www.w3.org/1999/xhtml">element()</code> root node for XML documents, a
  <code xmlns="http://www.w3.org/1999/xhtml">text()</code> root node for text documents, and a
  <code xmlns="http://www.w3.org/1999/xhtml">binary()</code> root node for binary documents.
</api:usage><api:example><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.doc("/mydocs/doc.xml")

=&gt; returns the document at the URI /mydocs/doc.xml
</pre></api:example></api:function></api:function-page>