on 05-16-2012 4:39 PM
Hi all,
I am working with a xml like this:
<STRUCT1>
....
</STRUCT1>
<STRUCT2>
....
</STRUCT2>
....
<STRUCT3>
....
</STRUCT3>
....
<STRUCT4>
....
<STRUCT4_1>
....
</STRUCT4_1>
....
</STRUCT4>
I am using receiver file adapter to write the result as a "|" separated file with a new line after each structure.
but my problem is that the for the srtucture 4_1 it doesnt insert a new line, it concatenate the fields after fields of structure 4.
Can I get a new line for each struct4_1? or is not possible at all?
Thanks.
Since there is a limitation using FCC for the complex structures, you can achieve using java mapping or convergent agent tool. This is another approach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
In fact, it is not possible to achieve what you need with FCC, since it doesn't support complex structures. If you want to create a new line based on these data, simply modify the structure so that struct4_1 became struct5 and was placed on the same structure level as struct4, like this:
...
<struct4> ... </struct4>
<struct5> ... </struct5>
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You want deep nested structure configuration. I'm not fully positive that you can achieve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try to use:
STRUCT4.fieldSeparaton NULL
STRUCT4_1.endSeparator \n
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.