It is nice and easy: <cftry><cfhttp url="http://www.nws.noaa.gov/data/current_obs/KHUM.xml" port="80" method="get" timeout="15"> </cfhttp><cfcatch type="Any"><cfdump var="#CFCATCH#"></cfcatch></cftry>
<cfset xmlContent = XMLParse(Trim(cfhttp.FileContent))> <cfoutput>KHUM<br> Current Weather: #xmlContent.current_observation.weather.XmlText#<br> Temperature: #xmlContent.current_observation.temp_f.XmlText#° F<br> Wind: out of the #xmlContent.current_observation.wind_dir.XmlText# at #xmlContent.current_observation.wind_mph.XmlText# mph<br> </cfoutput> Russel Madere Webmaster 504.832.9835 SunShine Pages by EATEL www.sunshinepages.com -----Original Message----- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 10:48 AM To: CF-Talk Subject: RE: US Weather from NWS (was RE: CF-Tag Weather for UK (London)?) > -----Original Message----- > From: Russel Madere [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 05, 2005 11:09 AM > To: CF-Talk > Subject: RE: US Weather from NWS (was RE: CF-Tag Weather for UK (London)?) > > I'm afraid I'm going to have to go back to trying to do a screen scrape > of the forecast. But the blamed thing is fairly confusing. For what it's worth I did the "Current Conditions" screen scraping about four years ago and it still works: http://www.depressedpress.com/depressedpress/Content/Development/ColdFus ion/ Extensions/FreeData_NWS/Index.cfm It's nice that they've not changed that page. ;^) I've not had a chance to bang away at the XML yet. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189399 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

