MakeMyTrip_Indi
13 years agoNew Contributor
Dynamic tags in request XML.
I want to have some tags in the XML whose repetition count will be input driven. For ex. in below XML, the no. of tags <Age></Age> will be input driven.
<RoomStayCandidates>
<RoomStayCandidate>
<GuestCounts>
<GuestCount count="2" ageQualifyingCode="10"/>
<GuestCount count="2" ageQualifyingCode="8">
<Ages>
<Age>5</Age>
<Age>5</Age>
</Ages>
</GuestCount>
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates>
Also, the no. of <RoomStayCandidate> </RoomStayCandidate> tags will be input driven. Please suugest how to hadble this scenario.
<RoomStayCandidates>
<RoomStayCandidate>
<GuestCounts>
<GuestCount count="2" ageQualifyingCode="10"/>
<GuestCount count="2" ageQualifyingCode="8">
<Ages>
<Age>5</Age>
<Age>5</Age>
</Ages>
</GuestCount>
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates>
Also, the no. of <RoomStayCandidate> </RoomStayCandidate> tags will be input driven. Please suugest how to hadble this scenario.