Example of a Flat File Definition in XML
This example shows a classic flat file definition created manually using an XML editor.
Note: Use Import > Flat File Definition from Classic File (.xml) to
import this file to Business Document Mapper.
<BankRepository>
<Files>
<File>
<ID>flat_test_1</ID>
<Messages>
<Message>
<Name>TopNode</Name>
<TagName>TopNode</TagName>
<DefaultAlignment>
<Numeric>RIGHT</Numeric>
<alpha>LEFT</alpha>
</DefaultAlignment>
<DefaultPadding>
<Numeric>0</Numeric>
<alpha></alpha>
</DefaultPadding>
<DefaultTrim>
<Numeric>1<Numeric>
<alpha/>
<DefaultEmptyFieldValue>
<Numeric>0</Numeric>
<alpha/>
</DefaultEmptyFieldValue>
<EscapeChar/>
<RecordSeparator>newline</RecordSeparator>
<FieldSeparator>;</FieldSeparator>
<IgnorePrecedingFieldSeparator>1</IgnorePrecedingFieldSeparator>
<Records>
<Group>
<Name>Person</Name>
<TagName>Person</TagName>
<MinOccur<1</MinOccur>
<MaxOccur>0</MaxOccur>
<Records>
<Record>
<Name>PersonDetails</Name>
<TagName>PersonDetails</TagName>
<MinOccur>1</MinOccur>
<MaxOccur>1</MaxOccur>
<Fields>
<Field>
<Name>FirstName</Name>
<TagName>FirstName</TagName>
<DataType>Alpha</DataType>
<PaddingChar/>
<DecimalLength/>
<Alignment>LEFT</Alignment>
<EmptyFieldValue></EmptyFieldValue>
<Trim>0</Trim>
<StartPos>0</StartPos>
<Length>10</Length>
<DefaultValue>/DefaultValue>
<Identifier>0</Identifier>
</Field>
</Fields>
</Record>
</Records>
</Group>
</Records>
</Message>
</Messages>
</File>
</Files>
</BankRepository>