Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Mapping Question - unbounded node not occurring multiple times

$
0
0

here is a simplified version of my scenario:

 

Input file looks like this:

 

<Data>

     <Part>

          <ID>123</ID>

     </Part>

     <Part>

          <ID>abc</ID>

     </Part>

</Data>

 

 

 

Output file needs to look like:

 

<Data>

     <Sync>

          <ActionE code="Add">123</ActionE>

          <ActionE code="Add">abc</ActionE>   

     </Sync>

     <Item>

          <IDcode>123</IDcode>

     </Item>

     <Item>

          <IDcode>abc</IDcode>

     </Item>

</Data>

 

 

 

I have <ActionE> and <Item> as 0..unbounded.

 

The <Item> correctly occurs multiple times, I am mapping <Part> to that in the Message Mapping.

 

The problem:  <ActionE> only occurs one time.  I don't know how to map it properly to occur multiple times like that.  Simply having <ID> in the mapping is not doing the trick.  Can you please help?


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>