--- title: "ConvertFixRecordToCsvPreParser" slug: "convert-fix-record-to-csv-pre-parser" updated: 2026-08-20T08:48:22Z published: 2026-08-20T08:48:22Z canonical: "docs.lobstersoftware.com/convert-fix-record-to-csv-pre-parser" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # ConvertFixRecordToCsvPreParser | **Class name** | com.ebd.hub.datawizard.parser.ConvertFixRecordToCsvPreParser | | --- | --- | ## Description This Preparser transforms a fix record file into a CSV file (only one line is kept in the main memory at any given time). The preparser expects an XML configuration file (see example below). The following parameters can be used. | config | Element | Superordinate element of the XML configuration file. | | --- | --- | --- | | length | Attribute of element *config* | Lines of the fix record file are expected to be separated by line breaks for attribute value *-1*. Positive integer values describe the length of the line. | | delim | Attribute of element *config* | The delimiter that is used in the created CSV file. | | segment | Element | For each record type in the fix record file, there has to be an XML element *segment* that describes the fields. | | matchcode | Attribute of element *segment* | Can be empty (all lines match) or specifies, if not empty, the match code like "Starts with" does in nodes (e.g. matchcode="123" ). Alternatively, a regular expression can be specified (e.g. matchcode="regex:123.*"). | | insert | Attribute of element *segment* | Is optional and can fill a new first column in the CSV file with a constant. The attribute can, for example, be used to insert a match code in CSV lines. | | column | Sub-element of element *segment* | Describes a field of the record type specified in the superordinate element *segment*. The order of the *column* elements is considered. | | length | Attribute of element *column* | The length of the field in the record type (line). | | trim | Attribute of element *column* | *true* or *false*. Specifies if leading or trailing whitespaces in the fix record field shall be removed in the CSV field. | | type | Attribute of element *column* | Specifies the data type of the CSV field (as in target field attribute *Type* in the GUI). Values can be *Integer*, *Float*, *Double*, *String*, *Date*, *Timestamp*, *BigInt*, or *BigDecimal*. | | format | Attribute of element *column* | Specifies the format of the CSV field (as in target field attribute *Template* in the GUI). | **Example:** We want to transform the fix record line | 001Hello world 110915 | | --- | into the CSV line | A;1;Hello World;2015-09-11 | | --- | This can be achieved with the following XML configuration file: ```xml                       ``` **NOTE:** Notice the type cast from String "001" to Integer "1" and String "110915" to Date "2015-09-11", as it would be done in mappings. ## Example file ```sample                                   ``` Optional intermediate phase before Phase 2. A preparser manipulates input data before the parser processes it; for example, to remove special characters or convert an unknown format to a supported one. XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data.