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

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.