Content of csv_parse2.xq example

(:Parse csv with two lines, and the last field is stretched over the next line:)

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

csv:parse(
'f1, f2, f3, f4
f5, f6, "f7", "f8
""f9"', 
validate{
<csv-options:options>
  <csv separator=","
       quote-char="""
       quote-escape=""""/>
  <xml-nodes>
    <row>
      <column/>
    </row>
  </xml-nodes>
</csv-options:options>}
)