• 如何只同XML公司教 no。
<Link> http://rss.cnn.com/rss/cnn_topstories.rss</Link>
http://rssreader.web44.net/rsslink.xml。
My ObjC 守则
CXMLDocument *rssParser = [[[CXMLDocument alloc] initWithContentsOfURL:url options:0 error:nil] autorelease];
// Create a new Array object to be used with the looping of the results from the rssParser
NSArray *resultNodes = NULL;
// Set the resultNodes Array to contain an object for every instance of an node in our RSS feed
resultNodes = [rssParser nodesForXPath:@"Link" error:nil];