admin:database-fragment-root( $namespace as xs:string?, $localname as xs:string ) as element(db:fragment-root)
This function constructs a fragment root specification.
Parameters | |
---|---|
namespace | The namespace URI. Specify an empty string if the element is in no namespace. |
localname | The local name for the node. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $namespace := "my/namespace" let $localname := "some-element-name" return admin:database-fragment-root($namespace, $localname ) (: returns the fragments root specification. Use admin:save-configuration to save these changes. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.