
admin.groupNamespace( prefix as String, namespace-uri as String ) as element(gr.namespace)
This function constructs a namespace element with the specified prefix and URI.
| Parameters | |
|---|---|
| prefix | The namespace prefix. |
| namespace-uri | The namespace URI. |
const admin = require('/MarkLogic/admin.xqy');
admin.groupNamespace("myprefix", "http://myuri/namespace")
//the namespace element
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.