R
Rizwan
I have the following tasks :
1) receive a flat text file which contains data and
2) convert it into an XML
The flat text file for example is in this format :
1 2
1234567890123456789012345
where :
Column 1 : recordType
Column 2 to 8 : companyNumber
Column 9 to 14 : batchNumber
Column 15 to 22 : hoursTotal
Column 23 to 25 : userField
After processing, the XML I get will be in this format :
<records>
<record>
<recordType>B</recordType>
<companyNumber>1127897</companyNumber>
<batchNumber>001234</batchNumber>
<hoursTotal>24567809</hoursTotal>
<userField>A09</userField>
</record>
<record>
<recordType>B</recordType>
<companyNumber>1124183</companyNumber>
<batchNumber>091334</batchNumber>
<hoursTotal>94857809</hoursTotal>
<userField>A08</userField>
</record>
</records>
Now I am a newbie regarding XML, so I was hpoing if somebody can give me the
abstract steps involved for this process.
Thanks
1) receive a flat text file which contains data and
2) convert it into an XML
The flat text file for example is in this format :
1 2
1234567890123456789012345
where :
Column 1 : recordType
Column 2 to 8 : companyNumber
Column 9 to 14 : batchNumber
Column 15 to 22 : hoursTotal
Column 23 to 25 : userField
After processing, the XML I get will be in this format :
<records>
<record>
<recordType>B</recordType>
<companyNumber>1127897</companyNumber>
<batchNumber>001234</batchNumber>
<hoursTotal>24567809</hoursTotal>
<userField>A09</userField>
</record>
<record>
<recordType>B</recordType>
<companyNumber>1124183</companyNumber>
<batchNumber>091334</batchNumber>
<hoursTotal>94857809</hoursTotal>
<userField>A08</userField>
</record>
</records>
Now I am a newbie regarding XML, so I was hpoing if somebody can give me the
abstract steps involved for this process.
Thanks