Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.databasePathNamespace

admin.databasePathNamespace(
   prefix as String,
   namespace-uri as String
) as element(db.pathNamespace)

Summary

This function constructs a namespace element with the specified prefix and URI.

Parameters
prefix The namespace prefix.
namespace-uri The namespace URI.

Example

  
  const admin = require('/MarkLogic/admin.xqy');

  admin.databasePathNamespace("aaa", "http://aaa.com")
  =>
    <pathNamespace xmlns="http://marklogic.com/xdmp/database">
      <prefix>aaa</prefix>
      <namespaceUri>http://aaa.com</namespaceUri>
    </pathNamespace>
   

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