Thanks Dominic. That was just what I needed!

On Fri, May 9, 2008 at 11:31 AM, Dominic Watson <
[EMAIL PROTECTED]> wrote:

> 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
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:305018
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to