Loading TOC...

xdmp:database-path-namespaces

xdmp:database-path-namespaces(
   [$dbid as xs:unsignedLong]
) as Element()

Summary

Returns the list of path namespaces for the given database id.

Parameters
dbid The id for the database to get the path namespaces for. Empty for the current database.

Example


xquery version "1.0-ml";

xdmp:database-path-namespaces(xdmp:database("Documents"))

=> List of path-namespaces defined on Documents

<path-namespaces xmlns="http://marklogic.com/xdmp/database">
  <path-namespace>
    <prefix>wm</prefix>
    <namespace-uri>http://www.mediawiki.org/xml/export-0.4/</namespace-uri>
  </path-namespace>
  <path-namespace>
    <prefix>aaa</prefix>
    <namespace-uri>http://www.aaa.org/</namespace-uri>
  </path-namespace>
</path-namespaces>

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.