You are on page 1of 4

1-1 Maping

The input file is a positional flat file. The hierarchy of the input XML file is as follows:

Temperature

Footer
RecordType 1
Rec_Count 10
Rec_Type 1
FlatFile Details

HSBCI293 20060504240000001*
AZP05603MY0508030010200002000000000550000002
20050809 20090808MYR 1 L 2.00 DR 0.00 U20051116064850*
BZP05603MY0508030010200002000000000550000002
20050809 1.000 2.00 20051116064850*
BZP05603MY0508030010200002000000000550000002
20050809 2.000 1.00 20051116064850*
AZP05633MY0508030010200002000000000550000002
20050809 20090808MYR 1 L 2.00 DR 0.00 U20051116064850*
BZP05703MY0508030010200002000000000550000002
20050809 1.000 2.00 20051116064850*
BZP05803MY0508030010200002000000000550000002
20050809 2.000 1.00 20051116064850*
F 8*
OutPutSchema

Input Instructions
Header and Footer records will occur only once. Min Occurs 1. Max Occurs 1.
ConditionalTableGroup record would occur multiple times. Min Occurs 1. Max Occurs *
ConditionData record would occur once per ConditionalTableGroup record. Min Occurs 1 Max
Occurs 1.
Scales record would occur multiple times per ConditionalTableGroup record. Min Occurs 0 Max
Occurs *.

This EOL setting has to be repeated for the ConditionalTableGroup record as well.

The Tag Identifier for each record would be the corresponding ‘RecordIdentifier’ field value – as
mentioned

Child Delimiter - 0x0A


Child Delimiter Type - Hexadecimal
Child Order – Postfix
Output Instructions

CondTblData record occurs multiple times. Min Occurs 1. Max Occurs *.


Scales record – Min Occurs 0. Max Occurs *.

Mapping is one-on-one, direct field to field. While mapping we should ignore the Header and Footer
records’ data unless otherwise specified.

Loop the ConditionData record to the CondTblData record using a looping functoid. Also loop the Scales
record on the input xml to the Scales record on the output xml using a looping functoid.

You might also like