Loading TOC...

MarkLogic 12 EA 2 Product Documentation
admin:database-fragment-root

admin:database-fragment-root(
   $namespace as xs:string?,
   $localname as xs:string
) as element(db:fragment-root)

Summary

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.

Example


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