You can use XmlSearch and XPath to easily get at the data you want.
The following gets a forecast for the current day from the xml:
<cfset weatherXml =
XmlParse('http://weather.yahooapis.com/forecastrss?p=90210')>
<cfset aForecasts = XmlSearch(oXml,
'//yweather:[EMAIL PROTECTED]"#DateFormat(Now(),'d mmm yyyy')#"]')>
<cfdump var="#aForecasts#">
This search gets you an array of all the elements with the yweather prefix:
<cfset weatherXml =
XmlParse('http://weather.yahooapis.com/forecastrss?p=90210')>
<cfset aForecasts = XmlSearch(weatherXml, '//yweather:*')>
<cfdump var="#aForecasts#">
etc, HTH
Dominic
2008/5/9 Phill B <[EMAIL PROTECTED]>:
>
> I am trying to use the Yahoo Weather RSS feed but CF doesn't like the node
> <yweather:condition>. How do I get around this?
>
> RSS Link http://tinyurl.com/6pvxmk
> RSS Weather docs http://tinyurl.com/kon6q
>
> Thanks
> --
> Phil
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305014
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4