
xdmp.databasePathNamespaces( [dbid as (Number|String)] ) as Array
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. |
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.