
admin:database-path-namespace( $prefix as xs:string, $namespace-uri as xs:string ) as element(db:path-namespace)
This function constructs a namespace element with the specified prefix and URI.
| Parameters | |
|---|---|
| prefix | The namespace prefix. | 
| namespace-uri | The namespace URI. | 
  xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";
  admin:database-path-namespace("aaa", "http://aaa.com")
  =>
    <path-namespace xmlns="http://marklogic.com/xdmp/database">
      <prefix>aaa</prefix>
      <namespace-uri>http://aaa.com</namespace-uri>
    </path-namespace>
   
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.