Loading TOC...

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" )
  

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