Loading TOC...

xdmp.databasePathNamespaces

xdmp.databasePathNamespaces(
   [$dbid as String]
) as Array

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


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

=> 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"
  }
]

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy