0
如何使用NSXMLDetector找到HTML文件的RSS链接,源标签是像这样:RSS探测器中的NSXMLParser
<link rel="alternate" type="application/rss+xml" title="CNN - Top Stories [RSS]" href="http://rss.cnn.com/rss/cnn_topstories.rss">
<link rel="alternate" type="application/rss+xml" title="CNN - Recent Stories [RSS]" href="http://rss.cnn.com/rss/cnn_latest.rss">
我需要这个,以便自动检测RSS应用中的RSS链接。谢谢 !
我该怎么做? – 2010-04-08 22:16:25
@Alexandre你的'NSXMLParser'应该有一个委托给它,这是你的委托方法之一。 – 2010-04-08 22:48:47
Alexandre Cassagne:http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/CommunicateWithObjects.html#//apple_ref/doc/uid/TP40002974-CH7-SW18 – 2010-04-09 03:38:18