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, TNen-usMon, 04 Aug 2008 8:53 am CDT60Yahoo! Weather14218 http://weather.yahoo.com http://l.yimg.com/us.yimg.com/i/us/nws/th/main_142b.gifConditions for Memphis, TN at 8:53 am CDT35.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
没有评论:
发表评论