filter.csv-to-xml.has-header
Controls if the CSV file has a header or not.
Key: filter.csv-to-xml.has-header
Type: Boolean
Can be set in: collection.cfg
Description
If set true the produced XML will have values in elements that are named after the field for example the CSV file:
year,model
1999,Foo
Would be transformed into XML containing:
<year>1999</year>
<model>Foo</model>
If no header is defined (and no custom header is defined) the field number will be used for example:
<field_0>1999</field_0>
<field_1>Foo</field_1>
Default Value
By default a CSV file is assumed to not have a header.
filter.csv-to-xml.has-header=false
Examples
If the CSV file has a header
filter.csv-to-xml.has-header=true