Connection XML
<connection id="5" name="Text" type="6" refreshedVersion="3" background="1" saveData="1">… <textPr codePage="437" sourceFile="E:\ …\Text.txt"> <textFields count="3"> <textField type="text"/> <textField position="5"/> <textField type="skip" position="10"/> </textFields> </textPr> </connection>
<connection> defines the connection
@typevalue of6indicates that this is a text import type of connection.
<textPr> expresses properties which are specific to text import connections.
@codePagevalue of437indicates that the text file is using the IBM PC (OEM) code page 437 character set.@sourceFileindicates where the file is located.
<textFields> expresses information about the particular fields in the text file.
@delimitedvalue of1(default) indicates that the text is delimited (variable length). Since this example uses the default value, it is not saved as part of the connection information.@typeindicates the data type (user-specified) of the particular field.@positionindicates the starting position of the field for fixed-width fields.@thousandsspecifies the thousands separator character (not in this example, but of enough interest to mention).@tab,@space,@commaattributes with values of1would flag these characters as delimiters (not in this example, but of enough interest to mention).