Just trying out the touchXML API.
NSString *feed = @"http://api.flickr.com/services/feeds/photos_public.gne";
NSURL *url = [NSURL URLWithString: feed];
CXMLDocument *rssParser = [[[CXMLDocument alloc] initWithContentsOfURL:url
options:0 error:&error] autorelease];
NSArray *resultNodes = NULL;
resultNodes = [rssParser nodesForXPath:@"//entry" error:nil];
NSLog(@"%d", [resultNodes count]);
Even though it is a valid XPath (//entry), the array count always return as
0. Is there something I am issing ?
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Labels: TouchXML