我從yahoo weather獲取天氣信息,我可以從文檔解析溫度信息,但有問題請我不能說我使用NSXMLParser
從<escription>
元素獲取圖像的URL即如何從雅虎天氣預報XML文檔中獲取圖片網址?
<description>
<![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/28.gif"/><br /> <b>Current Conditions:</b><br /> Mostly Cloudy, 61 F<BR /> <BR /><b>Forecast:</b><BR /> Thu - Showers. High: 66 Low: 48<br /> Fri - AM Light Rain. High: 52 Low: 37<br /> Sat - Partly Cloudy. High: 61 Low: 47<br /> Sun - AM Clouds/PM Sun. High
]]>
<![CDATA[
: 66 Low: 48<br /> Mon - PM Showers. High: 62 Low: 50<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Hakuba_Station__JP/*http://weather.yahoo.com/forecast/JAXX0105_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/> (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
]]>
</description>
用於解析MXL文件。
我認爲這將工作.. :) – 2014-11-07 02:28:46
燁我得到它的工作..感謝哥們。 – Blios 2014-11-12 09:13:54