我正在研究Apple的LazyTableImages示例代碼。我想了解該應用程序如何從應用程序中包含的RSS提要中提取數據: http://phobos.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/limit=75/xml瞭解蘋果示例代碼中的xml解析
上述url的內容是如何解析的?查看頁面源代碼揭示HTML沒有明顯的xml部分。在查看示例解析代碼時,我發現了幾個符號,如im:name
。但是,這些符號不在上述url的內容中。
我試圖在本地託管上述url的內容(w/limit = 1)。但是,將示例代碼指向@"~/Desktop/a.xml"
會導致應用程序拋出錯誤unsupported url
。
更多信息:在閱讀http://en.wikipedia.org/wiki/Rss時我遇到了我期望在上面的phobos鏈接中看到的內容。事情是這樣的:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>RSS Title</title>
<description>This is an example of an RSS feed</description>
<link>http://www.someexamplerssdomain.com/main.html</link>
<pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate>
<item>
<title>Example entry</title>
<description>an interesting description</description>
<link>http://www.wikipedia.org/</link>
<guid>unique string per item</guid>
<pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate>
</item>
</channel>
</rss>
是否有相應的地方上面的火衛一鏈接等效「人類可讀的」 XML文檔?
確定這是有道理的。我想自己託管飼料。然後修改Feed的內容。如何託管Atom 1.0格式的Feed? – SundayMonday