xdmp.databasePathNamespaces

xdmp.databasePathNamespaces(
   [dbid as (Number|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"
  }
]

Powered by MarkLogic Server | Terms of Use | Privacy Policy