Changes

Jump to navigation Jump to search
82 bytes added ,  16:52, 9 March 2023
no edit summary
| width='120' | '''Signature'''
|<pre>file:write(
$path as xs:string, $items input as item()*, $params options as itemmap(*) ? := ()map { }
) as empty-sequence()</pre>
|- valign="top"
| '''Summary'''
|Writes a serialized sequence of items {{$input}} to the specified file. If the file already exists, it will be overwritten.<br/>The {{Code|$paramsoptions}} argument contains [[Serialization|serialization parameters]]. As with [https://www.w3.org/TR/xpath-functions-31/#func-serialize fn:serialize()], the parameters can be specified<br/>
* either as children of an {{Code|&lt;output:serialization-parameters/&gt;}} element:
<syntaxhighlight lang="xml">
| width='120' | '''Signature'''
|<pre>file:append(
$path as xs:string, $items input as item()*, $params options as itemmap(*) ? := ()map { }
) as empty-sequence()</pre>
|- valign="top"
| '''Summary'''
|Appends a serialized sequence of items {{Code|$input}} to the specified file, with the supplied {{Code|$options}} as serialization parameters. If the file does not existsexist, a new file is created.<br/>
|- valign="top"
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu