AnsweredAssumed Answered

I have an XML element that can repeat. I want to compare if all iterations have same value of not.

Question asked by gouthamr388096 on Aug 30, 2018
Latest reply on Sep 4, 2018 by leif_jacobsen

I have an XML element that can repeat. I want to compare if all iterations have same value of not.

If all iterations have same value that in the destination field I will whatever value this repeated element has. If even one of the iterations has different value, I have to send a value of 30 to destination.

 

Here is an example. in this example one of the iterations of DeliveryMode has different value so in the mapping for destination I need send 30 as a value.

<XML>

<NameCollection>

<Name>.....<Name>

<Name>.....<Name>

</Namecollection>

<ContainerCollection>

<Container>

<DeliveryMode>33</DeliveryMode>

</Container>

<Container>

<DeliveryMode>24</DeliveryMode>

</Container>

<Container>

<DeliveryMode>33</DeliveryMode>

</Container>

</ContainerCollection>

</XML>

Outcomes