Being an ex-Air Force weather guy, I've enjoyed this thread a great deal. I am 
trying to parse the list of reporting stations as provided here: 
http://www.nws.noaa.gov/data/current_obs/index.xml

here is the code i'm using:
<cffile action="READ" file="c:\testsite\WX_Stations.xml" variable="wxlocales">
<cfset xmlContent = XMLParse(Trim(wxlocales))>
<cfoutput>
<cfloop from="1" to="100" index="i">
        #xmlContent.wx_station_index.station[i].station_id.xmltext#<br>
        #xmlContent.wx_station_index.station[i].state.xmltext#<br>
        #xmlContent.wx_station_index.station[i].station_name.xmltext#<br>
        #xmlContent.wx_station_index.station[i].latitude.xmltext#<br>
        #xmlContent.wx_station_index.station[i].longitude.xmltext#<br>
        #xmlContent.wx_station_index.station[i].xml_url.xmltext#
</cfloop>
</cfoutput>

It works very well except for the very last element xml_url if include that, I 
get this error:

Element XML_URL.XMLTEXT is undefined in a Java object of type class 
coldfusion.xml.XmlNodeMap referenced as

When I dump the XML it shows that xml_url does indeed have an xmltext value as 
seen below.
xml_url |  XmlText      http://weather.gov/data/current_obs/KAKO.xml

Anyway, can anyone see what I'm doing wrong? I'm new at XML and have tried 
everything I know to look for.

Thanks

John Venable


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189469
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to