I got the below requirement . Did anybody has code snippet for this? If so, Please share here. It will be great help for me. Input xml is :


<Employee>
    <name>name1</name>
    <id>123</id>
    <address>line1</address>
    <address>line2</address>
</Employee>
<Employee>
    <name>name1</name>
    <id>123</id>
    <address>line3</address>
    <address>line4</address>
</Employee>
<Employee>
    <name>nameTwo</name>
    <id>1234</id>
    <address>line1</address>    
</Employee>
<Employee>
    <name>nameThree</name>
    <id>12345</id>
    <address>line1</address>
    <address>line2</address>
</Employee>
<Employee>
    <name>name1</name>
    <id>123</id>
    <address>line5</address>
</Employee>

and Expected output:

<Employee>
    <name>nameOne</name>
    <id>123</id>
    <address>line1</address>
    <address>line2</address>
    <address>line3</address>
    <address>line4</address>
    <address>line5</address>
</Employee>
<Employee>
    <name>nameTwo</name>
    <id>1234</id>
    <address>line1</address>    
</Employee>
<Employee>
    <name>nameThree</name>
    <id>12345</id>
    <address>line1</address>
    <address>line2</address>
</Employee>

Comment From: spencergibb

Can you explain what this has to do with spring cloud openfeign?

Comment From: vjaybhas1

Can you explain what this has to do with spring cloud openfeign?

Hi, This is nothing to do with spring cloud. I just posted the question here. I am not sure if there any other forum to post my question.

Comment From: spencergibb

Try stack overflow?