AnsweredAssumed Answered

Groovy Concat

Question asked by rajavenkatapavanmanoj.abburi136897 on Mar 16, 2016
Latest reply on Apr 18, 2016 by santosh.gunasekaran854179

Hi all I have requirement to loop through the document and concat the values of particular element with semicolon(;) as delemiter.Does anybody had similar requirement? if yes could you please help with Data Process script to achieve this.

Input:

<xyz>

<abc>

<123>hi</123>

<456>something</456>

</abc>

<abc>

<123>hello</123>

<456>something</456>

</abc>

</xyz>

  Output:

<xyz>

<abc>

<123>hi;hello</123>

<456>something</456>

</abc>

<abc>

<123>hi;hello</123>

<456>something</456>

</abc>

</xyz>

Outcomes