Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Graphical mapping requirement

$
0
0


Hello Experts,

 

Can someone help me in this mapping :

 

Source XML :

<Root>

<Person>

   <PersonNumber>1234</PersonNumber>

- <Details>

  <Country>XXX</Name>

</Details>

</Person>

<Person>

   <PersonNumber>1234</PersonNumber>

- <Details>

  <Country>YYY</Country>

</Details>

</Person>

<Person>

   <PersonNumber>4321</PersonNumber>

- <Details>

  <Country>ZZZ</Country>

</Details>

</Person>

</Root>

 

Target XML :

 

<Root>

<Person>

   <PersonNumber>1234</PersonNumber>

- <Details>

  <Country>XXX</Name>

</Details>

- <Details>

  <Country>YYY</Country>

</Details>

</Person>

<Person>

   <PersonNumber>4321</PersonNumber>

- <Details>

  <Country>ZZZ</Country>

</Details>

</Person>

</Root>

 

The requirement is if the PersonNumber is same for any two occurence then we have to create only one Person node with the </Details> collated.

Rest all data will be passed as it is.

We have to do it only for a maximum of two occurences i.e. one person number can occur for a maximum of two times.

We want to achieve thsi using Graphical maaping.

 

 

Thanks

Gaurav


Viewing all articles
Browse latest Browse all 8735

Trending Articles



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