cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping hint 1:N in group of 2?

Former Member
0 Kudos

Hi All,

I am looking for message mapping hint to do following:

Source XML.


<itab>
  <itab_body>
    <a>1</a> 
    <b>1</b> 
  </itab_body>
  <itab_body>
    <a>2</a> 
    <b>2</b> 
  </itab_body>
.
.
.
  <itab_body>
    <a>n</a> 
    <b>n</b> 
  </itab_body>
</itab>

Target XML:


<itab>
  <itab_body>
    <a>1</a> 
    <b>1</b> 
  </itab_body>
  <itab_body>
    <a>2</a> 
    <b>2</b> 
  </itab_body>
</itab>
.
.
.
<itab>
  <itab_body>
    <a>n-1</a> 
    <b>n-1</b> 
  </itab_body>
  <itab_body>
    <a>n</a> 
    <b>n</b> 
  </itab_body>
</itab>

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

There are many ways to achieve this. I would use java mapping to get the desired result. You have to loop the source and in the target pick every two nodes as separate. Please follow this link for java mapping. This might provide some idea.

Refer this [link|http://techplay.plozzle.com/?p=21]

Answers (1)

Answers (1)

Former Member
0 Kudos

/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool