Parse youtube api feed v2

Pacninja

New Member
I'm trying to parse a YouTube feed provided by the YouTube data API. This feed lists all videos uploaded by a specific user, like this one: https://gdata.youtube.com/feeds/api/users/google/uploads?v=2I'm using touchXML in my iOS app. I've tried to collect all \[code\]<entry>\[/code\] nodes using nodesForXPath function in CXMLDocument. \[code\]NSURL *url = [NSURL URLWithString: newsFeedUrl];CXMLDocument *feedParser = [[CXMLDocument alloc] initWithContentsOfURL:url options:0 error:nil];NSArray *resultNodes = [feedParser nodesForXPath:@"//entry" error:nil];NSLog(@"%@",resultNodes.count); // >>> return (null)\[/code\]But this query doesn't return anything. I have checked the xpath syntax; I don't think it's wrong.
 
Back
Top