由於我試圖通過使用GDATA-API for iOS解析YOUTUBE-XML-Feed。在iphone上解析YouTube播放列表sdk/iOS
http://code.google.com/intl/de-DE/apis/youtube/2.0/developers_guide_protocol_channel_search.html
NSDictionary *namespaces = [NSDictionary dictionaryWithObjectsAndKeys:
@"http://www.w3.org/2005/Atom", @"",
@"http://schemas.google.com/g/2005", @"gd",
@"http://a9.com/-/spec/opensearch/1.1/",@"opensearch",
@"http://gdata.youtube.com/schemas/2007",@"yt",
@"W/"DkYGRH48fCp7ImA9Wx5WFEw."",@"gd:etag",
nil];
NSError *error = [[NSError alloc] init];
GDataXMLDocument *doc = [[GDataXMLDocument alloc] initWithData:receivedData options:0 error:nil];
NSArray *elements = [doc nodesForXPath:@"//entry" namespaces:namespaces error:&error];
我沒有得到任何結果。有沒有人得到這個解決方案?提前致謝!