Changes

Jump to navigation Jump to search
240 bytes added ,  23:49, 17 October 2013
==csv:parse==
{{Version|7.8}}: the return type has been changed from {{Code|element(<csv>)}} to {{Code|document-node(element(<csv>))}}, and the {{Code|format}} and {{Code|lax}} options have been added.
{| width='100%'
| '''Summary'''
|Converts the CSV data specified by {{Code|$input}} to XML, and returns the result as {{Code|<csv/>}} value.<br/>The {{Code|$options}} argument can be used to control the way the input is converted. The following options are available:
* {{Code|separator}} defines the character which separates columns in a row. By Allowed values are {{Code|comma}}, {{Code|semicolon}}, {{Code|colon}}, {{Code|tab}}, {{Code|space}} and single characters. The default, this is a comma ({{Code|,comma}}).* {{Code|header}} specifies if the first line of the input contains a is parsed as table header row. The Allowed values are {{Code|yes}} and {{Code|no}}; the default value is {{Code|falseno}}.
Options can either be specified<br />
* as children of an {{Code|<csv:options/>}} element; e.g.:
* or as map, which contains all key/value pairs:
<pre class="brush:xquery">
{ 'separator' : ';', ... }
</pre>
|-
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu