-<xqdoc:function exist:id="1.2.1">
<xqdoc:name exist:id="1.2.1.1">authenticate</xqdoc:name>
<xqdoc:signature exist:id="1.2.1.2">xmldb:authenticate($a as xs:string, $b as xs:string?, $c as xs:string?) xs:boolean</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.1.3">
<xqdoc:description exist:id="1.2.1.3.1">Check if a user is registered as database user. The function simply tries to read the database collection specified in the first parameter $a, using the supplied username in $b and password in $c. It returns true if the attempt succeeds, false otherwise.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.2">
<xqdoc:name exist:id="1.2.2.1">change-user</xqdoc:name>
<xqdoc:signature exist:id="1.2.2.2">xmldb:change-user($a as xs:string, $b as xs:string?, $c as xs:string*, $d as xs:string?) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.2.3">
<xqdoc:description exist:id="1.2.2.3.1">Change properties of an existing user, you must have appropriate permissions to do this. $a is the username, $b is the password, $c is the sequence of group memberships, $d is the home collection. The username is mandatory but other values are optional, where if empty the existing value is used.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.3">
<xqdoc:name exist:id="1.2.3.1">chmod-collection</xqdoc:name>
<xqdoc:signature exist:id="1.2.3.2">xmldb:chmod-collection($a as xs:string, $b as xs:integer) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.3.3">
<xqdoc:description exist:id="1.2.3.3.1">Sets the mode of the specified Collection. $a is the Collection path, $b is the mode (as xs:integer). PLEASE REMEMBER that 0755 is 7*64+5*8+5, NOT decimal 755.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.4">
<xqdoc:name exist:id="1.2.4.1">chmod-resource</xqdoc:name>
<xqdoc:signature exist:id="1.2.4.2">xmldb:chmod-resource($a as xs:string, $b as xs:string, $c as xs:integer) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.4.3">
<xqdoc:description exist:id="1.2.4.3.1">Sets the mode of the specified Resource. $a is the collection path, $b is the resource name, $c is the mode (as xs:integer). PLEASE REMEMBER that 0755 is 7*64+5*8+5, NOT decimal 755.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.5">
<xqdoc:name exist:id="1.2.5.1">collection-available</xqdoc:name>
<xqdoc:signature exist:id="1.2.5.2">xmldb:collection-available($a as xs:string) xs:boolean</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.5.3">
<xqdoc:description exist:id="1.2.5.3.1">Returns true as xs:boolean if there is a collection with the same name as the first argument as xs:string.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.6">
<xqdoc:name exist:id="1.2.6.1">collection-exists</xqdoc:name>
<xqdoc:signature exist:id="1.2.6.2">xmldb:collection-exists($a as xs:string, ...) xs:boolean</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.6.3">
<xqdoc:description exist:id="1.2.6.3.1">Returns true as xs:boolean if there is a collection with the same name as the first argument as xs:string.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.7">
<xqdoc:name exist:id="1.2.7.1">copy</xqdoc:name>
<xqdoc:signature exist:id="1.2.7.2">xmldb:copy($a as xs:string, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.7.3">
<xqdoc:description exist:id="1.2.7.3.1">Copy a collection $a to the collection $b. The collections can be specified either as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.8">
<xqdoc:name exist:id="1.2.8.1">copy</xqdoc:name>
<xqdoc:signature exist:id="1.2.8.2">xmldb:copy($a as xs:string, $b as xs:string, $c as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.8.3">
<xqdoc:description exist:id="1.2.8.3.1">Copy a resource $c from the collection specified in $a to collection in $b. The collections can be either specified as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.9">
<xqdoc:name exist:id="1.2.9.1">create-collection</xqdoc:name>
<xqdoc:signature exist:id="1.2.9.2">xmldb:create-collection($a as xs:string, $b as xs:string) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.9.3">
<xqdoc:description exist:id="1.2.9.3.1">Create a new collection as a child of the collection specified in the first argument. The collection can be passed as a simple collection path or an XMLDB URI.The second argument specifies the name of the new collection. The function returns the path to the new collection as an xs:string or - if the collection could not be created - the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.10">
<xqdoc:name exist:id="1.2.10.1">create-user</xqdoc:name>
<xqdoc:signature exist:id="1.2.10.2">xmldb:create-user($a as xs:string, $b as xs:string, $c as xs:string+, $d as xs:string?) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.10.3">
<xqdoc:description exist:id="1.2.10.3.1">Create a new user in the database. Arguments are: username, password, group memberships and home collection.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.11">
<xqdoc:name exist:id="1.2.11.1">created</xqdoc:name>
<xqdoc:signature exist:id="1.2.11.2">xmldb:created($a as xs:string) xs:dateTime</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.11.3">
<xqdoc:description exist:id="1.2.11.3.1">Returns the creation date of a collection $a. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.12">
<xqdoc:name exist:id="1.2.12.1">created</xqdoc:name>
<xqdoc:signature exist:id="1.2.12.2">xmldb:created($a as xs:string, $b as xs:string) xs:dateTime</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.12.3">
<xqdoc:description exist:id="1.2.12.3.1">Returns the creation date of a resource $b in the collection specified by $a. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.13">
<xqdoc:name exist:id="1.2.13.1">decode</xqdoc:name>
<xqdoc:signature exist:id="1.2.13.2">xmldb:decode($a as xs:string) xs:string</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.13.3">
<xqdoc:description exist:id="1.2.13.3.1">Decodes the string provided in $a such that any percent encoded octets will be translated to their decoded UTF-8 representation.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.14">
<xqdoc:name exist:id="1.2.14.1">decode-uri</xqdoc:name>
<xqdoc:signature exist:id="1.2.14.2">xmldb:decode-uri($a as xs:anyURI) xs:string</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.14.3">
<xqdoc:description exist:id="1.2.14.3.1">Decodes the URI provided in $a such that any percent encoded octets will be translated to their decoded UTF-8 representation.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.15">
<xqdoc:name exist:id="1.2.15.1">delete-user</xqdoc:name>
<xqdoc:signature exist:id="1.2.15.2">xmldb:delete-user($a as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.15.3">
<xqdoc:description exist:id="1.2.15.3.1">Deletes an existing user in the database. Requires username. Does not delete the user's home collection.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.16">
<xqdoc:name exist:id="1.2.16.1">document</xqdoc:name>
<xqdoc:signature exist:id="1.2.16.2">xmldb:document($a as xs:string+, ...) node()*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.16.3">
<xqdoc:description exist:id="1.2.16.3.1">Returns the documents specified in the input sequence. The arguments are either document pathes like '/db/shakespeare/plays/hamlet.xml' or XMLDB URIs like 'xmldb:exist://localhost:8081//db/shakespeare/plays/hamlet.xml'. If the input sequence is empty, the function will load all documents in the database.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.17">
<xqdoc:name exist:id="1.2.17.1">document-has-lock</xqdoc:name>
<xqdoc:signature exist:id="1.2.17.2">xmldb:document-has-lock($a as xs:string, $b as xs:string) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.17.3">
<xqdoc:description exist:id="1.2.17.3.1">Returns the name of the user that holds a write lock on the resource specified in $b in the collection $a. If no lock is in place, the empty sequence is returned. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.18">
<xqdoc:name exist:id="1.2.18.1">encode</xqdoc:name>
<xqdoc:signature exist:id="1.2.18.2">xmldb:encode($a as xs:string) xs:string</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.18.3">
<xqdoc:description exist:id="1.2.18.3.1">Encodes the string provided in $a such that it will be a valid collection or resource path. Provides similar functionality to java's URLEncoder.encode() function, with some enhancements</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.19">
<xqdoc:name exist:id="1.2.19.1">encode-uri</xqdoc:name>
<xqdoc:signature exist:id="1.2.19.2">xmldb:encode-uri($a as xs:string) xs:anyURI</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.19.3">
<xqdoc:description exist:id="1.2.19.3.1">Encodes the string provided in $a such that it will be a valid collection or resource path. Provides similar functionality to java's URLEncoder.encode() function, with some enhancements. Returns an xs:anyURI object representing a valid XmldbURI</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.20">
<xqdoc:name exist:id="1.2.20.1">exists-user</xqdoc:name>
<xqdoc:signature exist:id="1.2.20.2">xmldb:exists-user($a as xs:string) xs:boolean</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.20.3">
<xqdoc:description exist:id="1.2.20.3.1">Returns true if user exists. Requires username.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.21">
<xqdoc:name exist:id="1.2.21.1">get-child-collections</xqdoc:name>
<xqdoc:signature exist:id="1.2.21.2">xmldb:get-child-collections($a as xs:string) xs:string*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.21.3">
<xqdoc:description exist:id="1.2.21.3.1">Returns a sequence of strings containing all the child collections of the collection specified in $a. The collection parameter can either be a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.22">
<xqdoc:name exist:id="1.2.22.1">get-child-resources</xqdoc:name>
<xqdoc:signature exist:id="1.2.22.2">xmldb:get-child-resources($a as item()) xs:string*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.22.3">
<xqdoc:description exist:id="1.2.22.3.1">Returns all child resources in the specified collection.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.23">
<xqdoc:name exist:id="1.2.23.1">get-current-user</xqdoc:name>
<xqdoc:signature exist:id="1.2.23.2">xmldb:get-current-user() xs:string</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.23.3">
<xqdoc:description exist:id="1.2.23.3.1">Returns the current user from the context of the xquery.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.24">
<xqdoc:name exist:id="1.2.24.1">get-group</xqdoc:name>
<xqdoc:signature exist:id="1.2.24.2">xmldb:get-group($a as xs:string) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.24.3">
<xqdoc:description exist:id="1.2.24.3.1">Returns the owner group of the collection $a. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.25">
<xqdoc:name exist:id="1.2.25.1">get-group</xqdoc:name>
<xqdoc:signature exist:id="1.2.25.2">xmldb:get-group($a as xs:string, $b as xs:string) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.25.3">
<xqdoc:description exist:id="1.2.25.3.1">Returns the owner group of a resource in the collection specified by $a. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.26">
<xqdoc:name exist:id="1.2.26.1">get-mime-type</xqdoc:name>
<xqdoc:signature exist:id="1.2.26.2">xmldb:get-mime-type($a as xs:anyURI) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.26.3">
<xqdoc:description exist:id="1.2.26.3.1">Returns the MIME Type of the resource indicated in $a or an empty sequence otherwise.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.27">
<xqdoc:name exist:id="1.2.27.1">get-owner</xqdoc:name>
<xqdoc:signature exist:id="1.2.27.2">xmldb:get-owner($a as item()) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.27.3">
<xqdoc:description exist:id="1.2.27.3.1">Returns the owner of a collection. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.28">
<xqdoc:name exist:id="1.2.28.1">get-owner</xqdoc:name>
<xqdoc:signature exist:id="1.2.28.2">xmldb:get-owner($a as item(), $b as xs:string) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.28.3">
<xqdoc:description exist:id="1.2.28.3.1">Returns the owner of the specified resource $b in collection $a. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.29">
<xqdoc:name exist:id="1.2.29.1">get-permissions</xqdoc:name>
<xqdoc:signature exist:id="1.2.29.2">xmldb:get-permissions($a as xs:string) xs:int?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.29.3">
<xqdoc:description exist:id="1.2.29.3.1">Returns the permissions assigned to the collection $a. The collection can be specified as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.30">
<xqdoc:name exist:id="1.2.30.1">get-permissions</xqdoc:name>
<xqdoc:signature exist:id="1.2.30.2">xmldb:get-permissions($a as xs:string, $b as xs:string) xs:int?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.30.3">
<xqdoc:description exist:id="1.2.30.3.1">Returns the permissions assigned to the resource specified in $b which is a child of the collection $a. The collection can be specified as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.31">
<xqdoc:name exist:id="1.2.31.1">get-user-groups</xqdoc:name>
<xqdoc:signature exist:id="1.2.31.2">xmldb:get-user-groups($a as xs:string) xs:string+</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.31.3">
<xqdoc:description exist:id="1.2.31.3.1">Receives the sequence of groups the specified user is a member of.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.32">
<xqdoc:name exist:id="1.2.32.1">get-user-home</xqdoc:name>
<xqdoc:signature exist:id="1.2.32.2">xmldb:get-user-home($a as xs:string) xs:anyURI?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.32.3">
<xqdoc:description exist:id="1.2.32.3.1">Returns the home collection of the specified user or the empty sequence if no home collection is assigned to the user.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.33">
<xqdoc:name exist:id="1.2.33.1">is-admin-user</xqdoc:name>
<xqdoc:signature exist:id="1.2.33.2">xmldb:is-admin-user($a as xs:string) xs:boolean?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.33.3">
<xqdoc:description exist:id="1.2.33.3.1">Returns true if user is an Admin. Requires username.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.34">
<xqdoc:name exist:id="1.2.34.1">last-modified</xqdoc:name>
<xqdoc:signature exist:id="1.2.34.2">xmldb:last-modified($a as item(), $b as xs:string) xs:dateTime?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.34.3">
<xqdoc:description exist:id="1.2.34.3.1">Returns the last-modification date of a resource, whose name is specified by $b, in the collection specified by $a. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.35">
<xqdoc:name exist:id="1.2.35.1">login</xqdoc:name>
<xqdoc:signature exist:id="1.2.35.2">xmldb:login($a as xs:string, $b as xs:string?, $c as xs:string?) xs:boolean</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.35.3">
<xqdoc:description exist:id="1.2.35.3.1">Check if a user is registered as database user and change the user identity for the current XQuery script. The function simply tries to read the database collection specified in the first parameter $a, using the supplied username in $b and password in $c. Contrary to the authenticate function,login will set the current user for the xquery script to the authenticated user. It returns true if the attempt succeeds, false otherwise. If called from a HTTP contextthen the login is cached for the lifetime of the HTTP session and may be used for all XQueryscripts in that session.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.36">
<xqdoc:name exist:id="1.2.36.1">move</xqdoc:name>
<xqdoc:signature exist:id="1.2.36.2">xmldb:move($a as xs:string, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.36.3">
<xqdoc:description exist:id="1.2.36.3.1">Move a collection $a. The collection can be specified either as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.37">
<xqdoc:name exist:id="1.2.37.1">move</xqdoc:name>
<xqdoc:signature exist:id="1.2.37.2">xmldb:move($a as xs:string, $b as xs:string, $c as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.37.3">
<xqdoc:description exist:id="1.2.37.3.1">Move a resource $c from the collection specified in $a to collection in $b. The collection can be either specified as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.38">
<xqdoc:name exist:id="1.2.38.1">permissions-to-string</xqdoc:name>
<xqdoc:signature exist:id="1.2.38.2">xmldb:permissions-to-string($a as xs:integer) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.38.3">
<xqdoc:description exist:id="1.2.38.3.1">Format the resource or collection permissions passed as an integer value into a string. The returned string shows the permissions following the usual Unix conventions, i.e. all permissions set is returned as rwurwurwu, where the first three chars are for user permissions, followed by group and world. 'r' denotes read, 'w' write and 'u' update permissions</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.39">
<xqdoc:name exist:id="1.2.39.1">register-database</xqdoc:name>
<xqdoc:signature exist:id="1.2.39.2">xmldb:register-database($a as xs:string, $b as xs:boolean) xs:boolean</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.39.3">
<xqdoc:description exist:id="1.2.39.3.1">Register an XMLDB driver class with the XMLDB Database Manager. This is only required if you want to access a database instance different from the one that executes the XQuery.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.40">
<xqdoc:name exist:id="1.2.40.1">reindex</xqdoc:name>
<xqdoc:signature exist:id="1.2.40.2">xmldb:reindex($a as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.40.3">
<xqdoc:description exist:id="1.2.40.3.1">Reindex collection $a. DBA only</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.41">
<xqdoc:name exist:id="1.2.41.1">remove</xqdoc:name>
<xqdoc:signature exist:id="1.2.41.2">xmldb:remove($a as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.41.3">
<xqdoc:description exist:id="1.2.41.3.1">Remove a collection $a. The collection can be specified either as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.42">
<xqdoc:name exist:id="1.2.42.1">remove</xqdoc:name>
<xqdoc:signature exist:id="1.2.42.2">xmldb:remove($a as xs:string, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.42.3">
<xqdoc:description exist:id="1.2.42.3.1">Remove a resource from the collection specified in $a. The collection can be either specified as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.43">
<xqdoc:name exist:id="1.2.43.1">rename</xqdoc:name>
<xqdoc:signature exist:id="1.2.43.2">xmldb:rename($a as xs:string, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.43.3">
<xqdoc:description exist:id="1.2.43.3.1">Rename a collection $a. The collection can be specified either as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.44">
<xqdoc:name exist:id="1.2.44.1">rename</xqdoc:name>
<xqdoc:signature exist:id="1.2.44.2">xmldb:rename($a as xs:string, $b as xs:string, $c as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.44.3">
<xqdoc:description exist:id="1.2.44.3.1">Rename a resource $b in the collection specified in $a with name in $c. The collection can be either specified as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.45">
<xqdoc:name exist:id="1.2.45.1">set-collection-permissions</xqdoc:name>
<xqdoc:signature exist:id="1.2.45.2">xmldb:set-collection-permissions($a as xs:string, $b as xs:string, $c as xs:string, $d as xs:integer) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.45.3">
<xqdoc:description exist:id="1.2.45.3.1">Sets the permissions of the specified collection. $a is the collection, which can be specified as a simple collection path or an XMLDB URI. $b specifies the user which will become the owner of the resource, $c the group. The final argument contains the permissions, specified as an xs:integer value. PLEASE REMEMBER that 0755 is 7*64+5*8+5, NOT decimal 755.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.46">
<xqdoc:name exist:id="1.2.46.1">set-resource-permissions</xqdoc:name>
<xqdoc:signature exist:id="1.2.46.2">xmldb:set-resource-permissions($a as xs:string, $b as xs:string, $c as xs:string, $d as xs:string, $e as xs:integer) empty()</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.46.3">
<xqdoc:description exist:id="1.2.46.3.1">Sets the permissions of the specified resource. $a is the collection, which can be specified as a simple collection path or an XMLDB URI. $b denotes the resource tochange. $c specifies the user which will become the owner of the resource, $d the group. The final argument contains the permissions, specified as an xs:integer value. PLEASE REMEMBER that 0755 is 7*64+5*8+5, NOT decimal 755.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.47">
<xqdoc:name exist:id="1.2.47.1">size</xqdoc:name>
<xqdoc:signature exist:id="1.2.47.2">xmldb:size($a as xs:string, $b as xs:string) xs:long</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.47.3">
<xqdoc:description exist:id="1.2.47.3.1">Returns the estimated size of a resource $b (in bytes) in the collection specified by $a. The estimation is based on the number of pages occupied by a resource. If the document is serialized back to a string, it's size may be different, as parts of the structural information are stored in compressed form. The collection can be passed as a simple collection path or an XMLDB URI.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.48">
<xqdoc:name exist:id="1.2.48.1">store</xqdoc:name>
<xqdoc:signature exist:id="1.2.48.2">xmldb:store($a as xs:string, $b as xs:string?, $c as item()) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.48.3">
<xqdoc:description exist:id="1.2.48.3.1">Store a new resource into the database. The first argument denotes the collection where the resource should be stored. The collection can be either specified as a simple collection path or an XMLDB URI. The second argument is the name of the new resource. The third argument is either a node, an xs:string, a Java file object or an xs:anyURI. A node will be serialized to SAX. It becomes the root node of the new document. If the argument is of type xs:anyURI, the resource is loaded from that URI. The functions returns the path to the new document as an xs:string or - if the document could not be stored - the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.49">
<xqdoc:name exist:id="1.2.49.1">store</xqdoc:name>
<xqdoc:signature exist:id="1.2.49.2">xmldb:store($a as xs:string, $b as xs:string?, $c as item(), $d as xs:string) xs:string?</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.49.3">
<xqdoc:description exist:id="1.2.49.3.1">Store a new resource into the database. The first argument denotes the collection where the resource should be stored. The collection can be either specified as a simple collection path or an XMLDB URI. The second argument is the name of the new resource. The third argument is either a node, an xs:string, a Java file object or an xs:anyURI. A node will be serialized to SAX. It becomes the root node of the new document. If the argument is of type xs:anyURI, the resource is loaded from that URI. The final argument $d is used to specify a mime-type. If the mime-type is something other than 'text/xml' or 'application/xml', the resource will be stored as a binary resource. The functions returns the path to the new document as an xs:string or - if the document could not be stored - the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.50">
<xqdoc:name exist:id="1.2.50.1">store-files-from-pattern</xqdoc:name>
<xqdoc:signature exist:id="1.2.50.2">xmldb:store-files-from-pattern($a as xs:string, $b as xs:string, $c as xs:string+) xs:string*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.50.3">
<xqdoc:description exist:id="1.2.50.3.1">Store new resources into the database. Resources are read from the server's file system, using file patterns. The first argument denotes the collection where resources should be stored. The collection can be either specified as a simple collection path or an XMLDB URI. The second argument is the directory in the file system wherefrom the files are read.The third argument is the file pattern. File pattern matching is based on code from Apache's Ant, thus following the same conventions. For example: *.xml matches any file ending with .xml in the current directory, **/*.xml matches files in any directory below the current one. The function returns a sequence of all document paths added to the db. These can be directly passed to fn:doc() to retrieve the document.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.51">
<xqdoc:name exist:id="1.2.51.1">store-files-from-pattern</xqdoc:name>
<xqdoc:signature exist:id="1.2.51.2">xmldb:store-files-from-pattern($a as xs:string, $b as xs:string, $c as xs:string+, $d as xs:string) xs:string*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.51.3">
<xqdoc:description exist:id="1.2.51.3.1">Store new resources into the database. Resources are read from the server's file system, using file patterns. The first argument denotes the collection where resources should be stored. The collection can be either specified as a simple collection path or an XMLDB URI. The second argument is the directory in the file system wherefrom the files are read.The third argument is the file pattern. File pattern matching is based on code from Apache's Ant, thus following the same conventions. For example: *.xml matches any file ending with .xml in the current directory, **/*.xml matches files in any directory below the current one. The fourth argument $d is used to specify a mime-type. If the mime-type is something other than 'text/xml' or 'application/xml', the resource will be stored as a binary resource.The function returns a sequence of all document paths added to the db. These can be directly passed to fn:doc() to retrieve the document.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.52">
<xqdoc:name exist:id="1.2.52.1">store-files-from-pattern</xqdoc:name>
<xqdoc:signature exist:id="1.2.52.2">xmldb:store-files-from-pattern($a as xs:string, $b as xs:string, $c as xs:string+, $d as xs:string, $e as xs:boolean) xs:string*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.52.3">
<xqdoc:description exist:id="1.2.52.3.1">Store new resources into the database. Resources are read from the server's file system, using file patterns. The first argument denotes the collection where resources should be stored. The collection can be either specified as a simple collection path or an XMLDB URI. The second argument is the directory in the file system wherefrom the files are read.The third argument is the file pattern. File pattern matching is based on code from Apache's Ant, thus following the same conventions. For example: *.xml matches any file ending with .xml in the current directory, **/*.xml matches files in any directory below the current one. The fourth argument $d is used to specify a mime-type. If the mime-type is something other than 'text/xml' or 'application/xml', the resource will be stored as a binary resource.If the final boolean argument is true(), the directory structure will be kept in the collection, otherwise all the matching resources, including the ones in sub-directories, will be stored in the collection given in the first argument flatly.The function returns a sequence of all document paths added to the db. These can be directly passed to fn:doc() to retrieve the document.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.53">
<xqdoc:name exist:id="1.2.53.1">update</xqdoc:name>
<xqdoc:signature exist:id="1.2.53.2">xmldb:update($a as xs:string, $b as node()) xs:integer</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.53.3">
<xqdoc:description exist:id="1.2.53.3.1">Process an XUpdate request against a collection. The first argument specifies the collection as a simple collection path or an XMLDB URI. The second argument specifies the XUpdate modifications to be processed. Modifications are passed in a document conforming to the XUpdate specification. The function returns the number of modifications caused by the XUpdate.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function exist:id="1.2.54">
<xqdoc:name exist:id="1.2.54.1">xcollection</xqdoc:name>
<xqdoc:signature exist:id="1.2.54.2">xmldb:xcollection($a as xs:string+) node()*</xqdoc:signature>
-<xqdoc:comment exist:id="1.2.54.3">
<xqdoc:description exist:id="1.2.54.3.1">Works like fn:collection(), but does not include documents found in sub-collections of the specified collections.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
</xqdoc:functions>