MarkLogic Server 11.0 Product Documentation
admin:database-fragment-parent

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

Summary

This function constructs a fragment parent 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-parent($namespace, $localname )

  (: returns the fragments parent specification :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy