Loading TOC...

MarkLogic 12 EA 2 Product Documentation
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"
  }
]

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