filter.csv-to-xml.has-header

Background

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>

Setting the key

Set this configuration key in the search package or data source configuration.

Use the configuration key editor to add or edit the filter.csv-to-xml.has-header key, and set the value. This can be set to any valid Boolean value.

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