The Text Translator positional sender XSD file defines how XML data should be transformed into a flat, positional file. The following table lists the essential XSD elements and attributes.
The FileHeader and FileTrailer element definitions remain the same as explained in Text translator positional receiver XSD file.
Property | Description |
---|---|
Parser Defaults Element | |
Record Id Start Position | Required. Integer. This field indicates the start position of the Recorded for each record. |
Record Id End Position | Required. Integer. This field indicates the end position of the Recorded for each record. |
Default Record Delimiter | Required. Record Delimiter Type. The default delimiter between records is Newline. |
Default Escape Character | Optional. Characterizes. The default escape character is \. |
Default Pad Character | Required. String. Minimum length=1. Maximum length=1. Fills
the non-data portion of a field with any single character. Valid values
include a space or zero as well as any other character. The default
value is #. For example if you specify trailing ###'s in a field, they are ignored. This character is used for visual convenience when you want to space out the fields correctly and do not want to rely on the blank space. |
SkipCarriageReturn | Optional. Boolean. Defaults to true. |
ElementMapList Element This element maps the elements in the XML to the records in the flat file. |
|
ElementMap Element | |
ElementName | Required. NMTOKEN. The name of the element in the XML file. |
RecordId | Required. NMTOKEN. The record identifier to write. |
AttributeMap Element | |
AttributeName | Required. NMTOKEN. The name of the attribute. |
FieldName | Required. NMTOKEN. The field corresponding to the attribute. This field corresponds to the Name attribute of the Field element. |
TruncateData | Optional. Boolean. Defaults to true. |
RecordDefinitions\Record Element A record describes a line in the flat file. This record definition is translated into an XML element. |
|
RecordId | Required. NMTOKEN. This is the RecordId in the source XML file. |
Name | The name of the record. This is used to associate with a Header, Terminal, Sequence or Choice Name attribute. |
Description | String. The description of the name. This is not used while processing the file. |
XMLName | Required. NMTOKEN. The tag name of the output element. |
Field Element Each record consists of fields, which are translated into attributes or child elements depending on the ContainmentType. |
|
Name | Required. NMTOKEN. The name of the field which is used as a reference in the AttributeMap. This name must be unique within a record. |
XMLName | Required. NMTOKEN. The output attribute or element name of the XML. |
StartPosition | Required. Integer. The StartPosition should be one number greater than the EndPosition of the previous record or field, so that these two fields or records are contiguous. |
EndPosition | Required. Integer. The ending position of the field. |
PadCharacter | Required. String. Minimum length=1. Maximum length=1. Fills the non-data portion of a field with any single character. Valid values include a space or zero. |
Justification | Optional. Specifies the alignment of data. Right - Aligns data to the right. Left - Aligns data to the left when the data is less than the maximum field length. This also aligns data to the left when the amount of data is less than the minimum length requirement. Default. |