<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.documentProperties.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.documentProperties</api:function-name><api:suggest>xdmp.documentproperties</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>documentproperties</api:suggest><api:function-link mode="xquery" fullname="xdmp:document-properties">/apidoc/8.0/xdmp:document-properties.xml</api:function-link><api:function mode="javascript" name="documentProperties" type="builtin" lib="xdmp" category="Extension" subcategory="Documents, Directories, Properties, and Locks" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.documentProperties"><api:summary>
  Returns a sequence of properties documents, one for each of the specified
  documents that has a corresponding properties document.  If no documents
  are specified, returns a sequence of properties documents for all
  documents in the database that have a corresponding properties document.
</api:summary><api:params><api:param name="uri" type="xs:string*" optional="true"><api:param-description>
    A sequence of document URIs.
  </api:param-description><api:param-name>uri</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.documentProperties("/mydoc.xml");
=&gt;
&lt;prop:properties xmlns:prop="http://marklogic.com/xdmp/property"&gt;
  &lt;cpf:processing-status xmlns:cpf="http://marklogic.com/cpf"&gt;done
    &lt;/cpf:processing-status&gt;
  &lt;cpf:last-updated xmlns:cpf="http://marklogic.com/cpf"&gt;
    2010-05-24T16:28:11.577608-07:00&lt;/cpf:last-updated&gt;
  &lt;cpf:state xmlns:cpf="http://marklogic.com/cpf"&gt;
    http://marklogic.com/states/final&lt;/cpf:state&gt;
  &lt;prop:last-modified&gt;2010-05-24T16:29:58-07:00&lt;/prop:last-modified&gt;
&lt;/prop:properties&gt;

</pre>
</api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.documentProperties();
 =&gt; A ValueIterator with all of the document properties
    in the current database, for example:
    &lt;prop:properties
          xmlns:prop="http://marklogic.com/xdmp/property"&gt;
    Property Node1
    &lt;/prop:properties&gt;
    &lt;prop:properties
          xmlns:prop="http://marklogic.com/xdmp/property"&gt;
    Property Node2
    &lt;/prop:properties&gt;
    &lt;prop:properties
          xmlns:prop="http://marklogic.com/xdmp/property"&gt;
    Property NodeN
    &lt;/prop:properties&gt;
</pre>
</api:example></api:function></api:function-page>