http://xqerl.org/modules/csv
This module is statically bound to the prefix "csv".
- Description
Module for reading and writing CSV data.
The option map is used to control how data is parsed or written.
Three separator values are supported: tab, comma and semicolon.
The quote boolean value is tells the serializer to wrap each value in double-quotes.
- Functions
csv:parse
- Signature
csv:parse($input as xs:string?) as array(array(xs:string))?
csv:parse($input as xs:string?, $options as map(*)?) as array(array(xs:string))?- Description
- Parse string as CSV input. Returns array of arrays. The optional parameter $options is a map of
map{'separator' : [tab|comma|semicolon]}
csv:serialize
- Signature
csv:serialize($input as array(array(xs:string))?) as xs:string?
csv:serialize($input as array(array(xs:string))?, $options as map(*)?) as xs:string?- Description
- Serialize an array of arrays to CSV. The optional parameter $options is a map of
map{'separator' : [tab|comma|semicolon], 'quotes' : xs:boolean}