:) The METAR parser I wrote wasn't very user friendly. That's why I was excited when the XML came out. I guess I could rewrite my parser with regex and make it more bulletproof.
I might just do that as a side project. Pass my function a METAR and get a structure with the current observations. 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 11:26 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:53 AM > To: CF-Talk > Subject: RE: US Weather from NWS (was RE: CF-Tag Weather for UK (London)?) > > 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> Well - if it's that easy there's no need for me to do a tag for it. ;^) In my case the site that I was doing weather reports for is now defunct so it's not a priority at all. I did always want to do a METAR parser in CF tho.... Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:189411 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

