hi All,
I have the following scenario:
This is my three records in a text file :
13120000117A|20140623|CASH
13120000117A|20140623|CARD
13120000117B|20140623|CASH
The condition is :if the value of first element of all records is equal then only one destination message will be created(IN XML FORMAT) in which
last element is repeated(because its value is different) ??
our output should be like this for above records in text file:
<RootNode>
<Header>
<A>13120000117A</A>
<B>20140623</B>
<C>
<C1>CASH</C1>
<C2>CARD</C2>
</C>
</Header>
</RootNode>
How it is possible in map or some other option ??