Skip to content

filter.csv-to-xml.has-header (collection.cfg setting)

Description

Controls if the CSV file has a header or not.

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

See also

top

Funnelback logo
v15.16.0