MarkLogic Server 11.0 Product Documentation
dom:set-name

dom:set-name(
   $domain-name as xs:string,
   $new-name as xs:string
) as empty-sequence()

Summary

Set the name of the domain to something else. An error is raised if a domain with the new name already exists or if the domain cannot be found.

Parameters
domain-name The name of the domain whose name will be changed.
new-name The new name for this domain.

Example

  xquery version "1.0-ml";
  import module namespace dom = "http://marklogic.com/cpf/domains" 
		  at "/MarkLogic/cpf/domains.xqy";

  dom:set-name( "Test", "Incoming" )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy