Content of csv_serialize2.xq example

(: Serialize a sequence of two nodes into two lines of csv :)

import module namespace csv = "http://zorba.io/modules/csv";

csv:serialize(
(<row>
    <f1>value1</f1>
    <f2>value2</f2>
    <f3>value3</f3>
    <f4>value4</f4>
  </row>,
  <row>
    <f1>value11</f1>
    <f2>value12</f2>
    <f3>value13</f3>
    <f4>value14</f4>
  </row>), 
  ())