<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.databasePathNamespaces.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.databasePathNamespaces</api:function-name><api:suggest>xdmp.databasepathnamespaces</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>databasepathnamespaces</api:suggest><api:function-link mode="xquery" fullname="xdmp:database-path-namespaces">/apidoc/8.0/xdmp:database-path-namespaces.xml</api:function-link><api:function mode="javascript" name="databasePathNamespaces" 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.databasePathNamespaces"><api:summary>
  Returns the list of path namespaces for the given database id.
</api:summary><api:params><api:param name="dbid" type="xs:unsignedLong" optional="true"><api:param-description>
  The id for the database to get the path namespaces for.
  Empty for the current database.
  </api:param-description><api:param-name>dbid</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return class="javascript">Array</api:return><api:usage>
  <p xmlns="http://www.w3.org/1999/xhtml"></p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">

xdmp.databasePathNamespaces(xdmp.database("Documents"));

=&gt; List of path-namespaces defined on Documents
[
  {
    "prefix": "dc",
    "namespaceUri": "http://purl.org/dc/elements/1.1/"
  },
  {
    "prefix": "pl",
    "namespaceUri": "http://marklogic.com/ns/test/places"
  }
]

</pre></api:example></api:function></api:function-page>