2008年8月4日星期一

[fw-core] Accessing namespaces xml/rss

I am trying to parse the Yahoo! rss weather feed, specifically their values inside of namespaces, but I can't find the right path to save my life. I have registered the namespaces, but can't find the right syntax. Suggestions? [code] weather->yweather->location->city}"; ?> weather->current()->description()?> weather->current()->geo->lat}"?> [/code] [xml] Yahoo! Weather - Memphis, TN http://us.rd.yahoo.com/dailynews/rss/weather/Memphis__TN/*http://weather.yahoo.com/forecast/38105_f.html Yahoo! Weather for Memphis, TN en-us Mon, 04 Aug 2008 8:53 am CDT 60 Yahoo! Weather 142 18 http://weather.yahoo.com http://l.yimg.com/us.yimg.com/i/us/nws/th/main_142b.gif Conditions for Memphis, TN at 8:53 am CDT 35.05 -90 http://us.rd.yahoo.com/dailynews/rss/weather/Memphis__TN/*http://weather.yahoo.com/forecast/38105_f.html Mon, 04 Aug 2008 8:53 am CDT
Current Conditions:
Fair, 82 F

Forecast:
Mon - Mostly Sunny. High: 99 Low: 77
Tue - Mostly Sunny. High: 100 Low: 76

Full Forecast at Yahoo! Weather
(provided by The Weather Channel)
]]>
38105_2008_08_04_8_53_CDT
[/xml]

View this message in context: Accessing namespaces xml/rss
Sent from the Zend Core mailing list archive at Nabble.com.

没有评论: