on 2013 Jun 10 6:22 AM
Hello Experts,
I have a requirement to convert text file to XML. The text file is of below format:
Records=2
Rec1=12345.xyz
Rec2=9876.xyz
[Separator]
Rec1=ABCD-4567
Rec2=LMNO-1023
The above file should be converted to below XML:
<Message_Name>
<Node>
<Field1>12345.xyz</Field1>
<Field2>ABCD-4567</Field2>
</Node>
<Node>
<Field1>9876.xyz</Field1>
<Field2>LMNO-1023</Field2>
</Node>
</Message_Name>
Please note that there can be any number of records (10/ 50/ 100.....etc).
Any solution to above requirement?
Thank you!
Request clarification before answering.
Hi Pankaj,
Udo is right. The simple file content conversion function in file sender channel will not do the job here.
You may need external program or write a module processor to get it done.
Regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
only file content conversion is not enough here. There is no standard for this file format. You need a kind of mapping logic to convert the adapter result to the expected xml.
/Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Pankaj,
if you are using the Seeburger-BIC-Adapter for your EDI requirements, you can use it as well for such requirements like CSV-FIle, Text-files...
Otherwise, the Content-Conversion-Option as mentioend by Dimitri should should also be able to do it (if using the File-Adapter).
Kind Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Pankaj,
Have a look at the file content conversion option in a sender file communication channel.
Kind regards,
Dimitri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.