thx for your quick response bonekrusher, but it loses soma data. I mean it has to calculate all combinations per booking class and per leg. That is,
if there are 3 flightLegs for a flight:
leg1{A, B, C} // 3 booking class codes for leg1
leg2{A, Y} // 2 booking class codes for leg2
leg 3{E,F,G} // 3 booking class codes for leg3
then in new xml file, there must be 3 x 2 x 3 = 18 new flight elements
3 example of newly created 18 flight nodes
<Flight>
<FlightLeg booking="A" />
<FlightLeg booking="A" />
<FlightLeg booking="E" />
</Flight>
<Flight>
<FlightLeg booking="A" />
<FlightLeg booking="A" />
<FlightLeg booking="F" />
</Flight>
<Flight>
<FlightLeg booking="B" />
<FlightLeg booking="Y" />
<FlightLeg booking="F" />
</Flight>
... and so on..am i more clear now?
|