Changes

Jump to navigation Jump to search
106 bytes added ,  00:51, 20 October 2013
'''Query:'''
<pre class="brush:xquery">
let $text := "Name;City" || out:nl() || "John;Newton" || out:nl() || "Jack;Oldtown"let $options := { 'separator': ';', 'format': 'map' , 'header':true() }
let $map := csv:parse($text, $options)
return map:serialize($map)
<pre class="brush:xml">
{
1: ({ "City": "Newton", "Name", : "CityJohn") }, 2: ({ "City": "JohnOldtown", "NewtonName": "Jack") }
}
</pre>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu