A module for performing various operations on files and directories stored in the server file system.
file:serialize($node-set as node()*, $path as item(), $parameters as item()*) as xs:boolean?
Writes the node set into a file on the file system. $parameters contains a sequence of zero or more serialization parameters specified as key=value pairs. The serialization options are the same as those recognized by "declare option exist:serialize". The function does NOT automatically inherit the serialization options of the XQuery it is called from. This method is only available to the DBA role.
$node-set* | The contents to write to the file system. |
$path | The full path or URI to the file |
$parameters* | The serialization parameters: either a sequence of key=value pairs or an output:serialization-parameters element as defined by the standard fn:serialize function. |
file:serialize($node-set as node()*, $path as item(), $parameters as item()*, $append as xs:boolean) as xs:boolean?
Writes the node set into a file on the file system, optionally appending to it. $parameters contains a sequence of zero or more serialization parameters specified as key=value pairs. The serialization options are the same as those recognized by "declare option exist:serialize". The function does NOT automatically inherit the serialization options of the XQuery it is called from. This method is only available to the DBA role.
$node-set* | The contents to write to the file system. |
$path | The full path or URI to the file |
$parameters* | The serialization parameters: either a sequence of key=value pairs or an output:serialization-parameters element as defined by the standard fn:serialize function. |
$append | Should content be appended? |
file:serialize-binary($binarydata as xs:base64Binary, $path as item()) as xs:boolean
Writes binary data into a file on the file system. This method is only available to the DBA role.
$binarydata | The contents to write to the file system. |
$path | The full path or URI to the file |
file:serialize-binary($binarydata as xs:base64Binary, $path as item(), $append as xs:boolean) as xs:boolean
Writes binary data into a file on the file system, optionally appending the content. This method is only available to the DBA role.
$binarydata | The contents to write to the file system. |
$path | The full path or URI to the file |
$append | Should content be appended? |