[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem with iterating through 1 to many FlightSegment

Subject: Problem with iterating through 1 to many FlightSegment nodes
From: "Mac Rost" <mrost@xxxxxxxxxxxxx>
Date: Fri, 13 Sep 2002 08:46:46 -0500
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.