cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a duplicate TAG from a XML data in CPI

Mofizur
Contributor
0 Kudos

Hi Experts,

 

I only want to delete teh duplicate tags keeping only the top most one in CPI. Do I have to write a groovy for that or there is some in built funcitonality which can help me.

Below is my input data

<person>
<personal_information></personal_information>
<personal_information></personal_information>
<personal_information></personal_information>
<address_information></address_information>
<email_information></email_information>
<employment_information></employment_information>
<employment_information></employment_information>
</person>

I am expecting something like below

<person>
<personal_information></personal_information>
<address_information></address_information>
<email_information></email_information>
<employment_information></employment_information>
</person>

Any idea please.

 

Thanks,

Mofizur

Accepted Solutions (0)

Answers (0)