Conditional Mapping in OIC
Summary
Issue in conditional MapContent
Hi Team,
Below is the input XML structure which i am trying to have conditional mapping.
<Phone_Hierarchy>
<Phone_Details>
<Phone_Info>
<Phone_Primary_ID>test</Phone_Primary_ID>
<Phone_ID>test</Phone_ID>
<Phone_Number>978-5567</Phone_Number>
</Phone_Info>
</Phone_Details>
<Phone_Details>
<Phone_Info>
<Phone_Primary_ID>test</Phone_Primary_ID>
<Phone_ID>test1</Phone_ID>
<Phone_Number>9728524522</Phone_Number>
</Phone_Info>
</Phone_Details>
</Phone_Hierarchy>
The CONDITION CHECK IS:
if Phone_Primary_ID == Phone_ID then map Phone_Number else empty element.
below is the looping which i tried
for each of Phone_Details
Tagged:
0