MarkLogic 12 EA 1 Product Documentation
admin.groupNamespace

admin.groupNamespace(
   prefix as String,
   namespace-uri as String
) as element(gr.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

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

  admin.groupNamespace("myprefix", "http://myuri/namespace")
   //the namespace element 
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy