[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Problem with iterating through 1 to many FlightSegment
To All: I am having a problem with the following XML Doc. ====================== - <AirAvailabilityResults size="9"> - <AirAvailabilityReply> <supplierType>S</supplierType> <baseFare>360.0</baseFare> <price>407.00</price> <currency>USD</currency> - <FlightSegment> <segmentOutgoing>true</segmentOutgoing> <chainCode>UA</chainCode> <flightNumber>5588</flightNumber> <departureCityCode>DEN</departureCityCode> <arrivalCityCode>SGF</arrivalCityCode> <departureDate>10/04/2002 10:15 AM</departureDate> <arrivalDate>10/04/2002 1:05 PM</arrivalDate> <classOfServiceCode>Q</classOfServiceCode> <equipmentCode>CRJ</equipmentCode> <numberOfStops>0</numberOfStops> <departureCity>Denver</departureCity> <departureStateProvince>CO</departureStateProvince> <departureCountry>US</departureCountry> <arrivalCity>Springfield</arrivalCity> <arrivalStateProvince>MO</arrivalStateProvince> <arrivalCountry>US</arrivalCountry> <company>UNITED AIRLINES</company> <fareBasis>QHE14NR</fareBasis> </FlightSegment> - <FlightSegment> <segmentOutgoing>false</segmentOutgoing> <chainCode>UA</chainCode> <flightNumber>5589</flightNumber> <departureCityCode>SGF</departureCityCode> <arrivalCityCode>DEN</arrivalCityCode> <departureDate>10/25/2002 1:40 PM</departureDate> <arrivalDate>10/25/2002 2:45 PM</arrivalDate> <classOfServiceCode>Q</classOfServiceCode> <equipmentCode>CRJ</equipmentCode> <numberOfStops>0</numberOfStops> <departureCity>Springfield</departureCity> <departureStateProvince>MO</departureStateProvince> <departureCountry>US</departureCountry> <arrivalCity>Denver</arrivalCity> <arrivalStateProvince>CO</arrivalStateProvince> <arrivalCountry>US</arrivalCountry> <company>UNITED AIRLINES</company> <fareBasis>QHE14NR</fareBasis> </FlightSegment> <ticketType>E</ticketType> <tripType>R</tripType> </AirAvailabilityReply> ============================= Now there can be one to many FlightSegments, and I just need to pull the dates and times out of each one to display each leg of the flight. Any ideas? Mac Rost Affiliate Relations/XML Developer TravelNow.com a wholly owned subsidiary of Hotel Reservations Network mailto:xml@xxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|