Loading TOC...

MarkLogic 12 EA 1 Product Documentation
admin:database-path-namespace

admin:database-path-namespace(
   $prefix as xs:string,
   $namespace-uri as xs:string
) as element(db:path-namespace)

Summary

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

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

Example


  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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.