Changes

Jump to navigation Jump to search
8 bytes added ,  23:47, 26 May 2012
| '''Summary'''
|Writes a sequence of {{Code|$items}} to a file specified by {{Code|$path}}. If the specified file already exists, it will be overwritten.<br />The optional argument {{Code|$params}} is used to set the serialization parameters (see [[Serialization]] for more details).It can be specified as<br />
* {{Code|element(serialization-parameters)}}: {{Code|&lt;serialization-parameters/&gt;}} must be used as root element, and the parameters are specified as child nodes, with the element name representing the serialization parameter and the attribute {{Code|value}} representing its value:<br />{{Code|<code>&lt;serialization-parameters xmlns="http://www.w3.org/2010/xslt-xquery-serialization"&gt;<br/>&nbsp;&nbsp;&lt;method value='xml'/&gt;<br/>&nbsp;&nbsp;&lt;cdata-section-elements value="div"/&gt;<br/>&nbsp;&nbsp;...<br/>&lt;/serialization-parameters&gt;}}</code>* [[Map Module|map structure]]: all parameters can be directly represented as key/value pairs:<br />{{Code|<code>map { "method" := "xml", "cdata-section-elements" := "div", ... }}}</code><br/>
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu