on 02-21-2013 10:00 AM
Hello experts,
A quick question is it possible to dump entire txt file content to single element in xml structure using messagetransformbean?
file contains random data with multiple lines
File Data-
1x2x3xasdfghjkl123456zxcvbnm
adjolm123456nuklldr
1234688900qwertyuuii
asdf
1234
qwert
can i make it to xml structure like---
<Node>
<Data>
1x2x3xasdfghjkl123456zxcvbnm
adjolm123456nuklldr
1234688900qwertyuuii
asdf
1234
qwert
</Data>
</Node>
if yes,how can i achive this conversion using messagetransformbean?
separated the data in java mapping, as required.
Thanks,
Sandip Hole
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another alternative method you can use, if you are below PI 7.1, you can refer
Or if you are using PI 7.1, find very well articulated blog by Jyothi Anagani at
Hope it help.!
Regards,
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sandip,
i am not sure but you can try to give the field separator as unique which is not in the file something spacial charater like(#,@,^...) , or give field separator as blank.
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i am able to transform to multiple each line <Data> elements, can i make it all lines to single <Data>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.