Hi, I need to build a quick and dirty app to display weather for a given zip code. I'm planning on using Yahoo!'s weather feed; for example, see http://weather.yahooapis.com/forecastrss?p=19426&u=f
The specific issue that I am trying to resolve is using lines like these: <!--StartFragment--><yweather:condition text="Fair" code="34" temp="69" date="Mon, 21 May 2007 2:54 pm EDT" /> How do I reference the "temp" attribute from that code snippet? I got everything else to work easily enough using the following code: <cfhttp method="get" url=" http://weather.yahooapis.com/forecastrss?p=19426&u=f"></cfhttp> <xmp> <cfoutput>#cfhttp.filecontent#</cfoutput> </xmp> <cfscript> wx = trim(cfhttp.filecontent); wx = xmlparse(wx); wx = wx.rss.channel; </cfscript> <hr> XML: <cfoutput><p>#wx.title.xmltext#</p></cfoutput> <cfoutput><p>#wx.item.description.xmltext#</p></cfoutput> However, when I try to reference anything with the yweather: prefix (i.e. <cfoutput><p>#wx.item.yweather:condition["temp"].xmltext#</p></cfoutput>), I get: Invalid CFML construct found on line 24 at column 31. ColdFusion was looking at the following text: : The CFML compiler was processing: - An expression that began on line 24, column 14. Your expression might be missing an ending "#" (it might look like #expr ). - The body of a cfoutput tag beginning on line 24, column 2. Thanks for any assistance, Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278804 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

