xmldb:rename($collection-uri as xs:string, $resource as xs:string, $new-resource-name as xs:string) empty()
Renames the resource $resource in collection $collection-uri with new name $new-resource-name. Collection URIs can be specified either as a simple collection path or an XMLDB URI.
xmldb:rename($source-collection-uri as xs:string, $new-collection-name as xs:string) empty()
Renames the collection $source-collection-uri with new name $new-collection-name. Collection URIs can be specified either as a simple collection path or an XMLDB URI.