Empty destination elements for repeating records

Hi,

I am having a mapping problem and would need some help. 

The source file has a repeating node with 0 to X occurrences and it need to be mapped to a destination

repeating node with fixed number of X occurrences. Empty nodes need to be generated to the destination node even if

they are missing from the source.

Source

<Surveys>
 <FoodSurvey>
   <Name>Dan</Name>
 </FoodSurvey>
  <FoodSurvey>
   <Name>Rick</Name>
 </FoodSurvey>
</Surveys>

Destination

<Results>
 <Data>
   <Name>Dan</Name>
 </Data>
 <Data>
   <Name>Rick</Name>
 </Data>
 <Data>
   <Name/>
 </Data>
 <Data>
   <Name/>
 </Data>
     .
     .
     .
</Results>


 

May 21st, 2015 2:42am

Hi,

You need to set Min Occurs property of your destination nodes to 1.

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 3:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics