cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Experts,

Source Data

<root>
  <test>
     <product>
        <box>square</box>
        <qty>5</qty>
     </product>
  </test>
</root>

Expected Data

<root>
  <Level1>test<Level1>
  <Level2>Product<Level2>
  <Level3>square</Level3>
  <Level4>5</Level4>
</root>

Can you please advice me on how to achieve the above requirement?

TIA,

Barath

0 Likes
View Entire Topic
daviddasilva
Active Contributor
0 Likes

Hi,

It depends if the incoming messages are always the same structure?
If so, then you could use message mapping, create the source and target xsd accordingly.
Alternatively, you could do this with a groovy script which will be much more flexible.

Kind regards,

David

barath_dv
Participant
0 Likes

daviddasilva - Thanks for the comment.

The structure will be dynamic so we cannot make use of message mapping.