cancel
Showing results for 
Search instead for 
Did you mean: 

new line for Receiver File XML

AntonioSanz
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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.

AntonioSanz
Active Participant
0 Kudos

Thanks to all for your comments. I'm affraid I have to do a workarround for achieving the requirements of my projects.

But is good to know that what I wanted to do is not supported.

former_member184681
Active Contributor
0 Kudos

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

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You want deep nested structure configuration. I'm not fully positive that you can achieve.

Former Member
0 Kudos

try to use:

STRUCT4.fieldSeparaton NULL

STRUCT4_1.endSeparator \n