Thanks everyone - - I was able to get a version of this working using the
following:

Essentially - what I had to do - was re-specify that I wanted
"FlightHistory" even though I stated in my search that I wanted to start in
that lvl...  (Maybe I am not understanding how xmlsearch works... but it
worked in other code -= just not here.)

<cfset myFlights =
xmlSearch(mydoc,'/:FlightHistoryGetRecordsResponse/:FlightHistory')>
<cfset numFlights =
"#ArrayLen(xmlSearch(mydoc,'/:FlightHistoryGetRecordsResponse/:FlightHistory
'))#"> 
<cfoutput>ArrayLen:: #numFlights#</cfoutput>


<table cellpadding="3" cellspacing="2" border="1">
    <tr>
        <th>Airline</th>
        <th>Origin</th>
        <th>Destination</th>
        <th>Scheduled Departure</th>
        <th>Scheduled Arrival</th>
        <th>Scheduled Flight Time</th>
    </tr>
<cfoutput>
<cfloop from="1" to="#numFlights#" index="i">
        <cfset myXML = xmlparse(myFlights[i])>
    
<tr>
        <td>#myXML.FlightHistory.Airline.XmlAttributes.Name#</td>
        <td>#myXML.FlightHistory.Origin.XmlAttributes.Name#</td>
        <td>#myXML.FlightHistory.Destination.XmlAttributes.Name#</td>
        <td><cfif
IsDefined("myXML.FlightHistory.XmlAttributes.ScheduledGateDepartureDate")>#m
yXML.FlightHistory.XmlAttributes.ScheduledGateDepartureDate#</cfif></td>
        <td><cfif
IsDefined("myXML.FlightHistory.XmlAttributes.ScheduledGateArrivalDate")>#myX
ML.FlightHistory.XmlAttributes.ScheduledGateArrivalDate#</cfif></td>
        <td><cfif
IsDefined("myXML.FlightHistory.XmlAttributes.ScheduledAirTime")>#myXML.Fligh
tHistory.XmlAttributes.ScheduledAirTime#</cfif></td>
</tr>
    
</cfloop>
</cfoutput>
</table>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5899
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to