Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.databaseFragmentRoot

admin.databaseFragmentRoot(
   namespace as String?,
   localname as String
) as element(db.fragmentRoot)

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

  
  const admin = require('/MarkLogic/admin.xqy');
  const namespace = "my/namespace"
  const localname = "someElementName"
  admin.databaseFragmentRoot(namespace, localname )

   //returns the fragments root specification.
   //Use admin.saveConfiguration to save these changes. 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.