cancel
Showing results for 
Search instead for 
Did you mean: 

target message based on the city name

0 Kudos

hi my source message schema is like this.based on the city name the target file will be created at the same time records to that particular city only.

<Record>

<person>ramesh</person>

<City>xx</City>

<Address>xyz</Address>

</Record>

<Record>

<person>suresh</person>

<City>yy</City>

<Address>abc</Address>

</Record>

<Record>

<person>ajay</person>

<City>yy</City>

<Address>def</Address>

</Record>

<Record>

<person>kirshna</person>

<City>xx</City>

<Address>ghi</Address>

</Record>

target message schema will be like this.

<City>

<Record>

<person>ramesh</person>

<Address>xyz</Address>

</Record>

<Record>

<person>kirshna</person>

<Address>ghi</Address>

</Record>

</City>

<City>

<Record>

<person>suresh</person>

<Address>abc</Address>

</Record>

<Record>

<person>ajay</person>

<Address>def</Address>

</Record>

</City>

iam getting correct only when same city records giving together.its creating another city record if i gives differently...how to achieve this

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you please be clear with the question? What do you mean by iam getting correct only when same city records giving together.its creating another city record if i gives differently...how to achieve this?

Thanks and Regards,

Sudheer.

0 Kudos

hi for my above source schema..when iam doing mapping iam gettin like this

<City>

<Record>

<person>ramesh</person>

<Address>xyz</Address>

</Record>

</City>

<City>

<Record>

<person>suresh</person>

<Address>abc</Address>

</Record>

<Record>

<person>ajay</person>

<Address>def</Address>

</Record>

</City>

<City>

<Record>

<person>kiran</person>

<Address>ghi</Address>

</Record>

</City>

here 3 city header files are creating with city name instead of two header files..here source side Iam using only two city names...so i want two header files target side...