Receiver side structure is :
<Records>
....
<CardBlockDetail>
....
</CardBlockDetail>
</Records>
<Records>
....
<CardBlockDetail>
....
</CardBlockDetail>
</Records>
Target File Format: there will be seperate line should generate for each Record -
<Record1><CardBlockDetail>
<Record2><CardBlockDetail>
Records and CardBlockDetail can come multiple times and there would be single line for each record which contain CardBlockDetail also in the same line.
Please suggest the solutions to acheive this target file format.