xml - IOS - Parsing Youtube RSS with GData - Namespace troubles -


i've been struggling while trying figure out , i'm hoping out there can help.

i'm using gdata xml parser read through atom feed provided youtube. can access elements exist in namespace eg:

here code snippet i'm attempting make work:

nsarray *items = [rootelement elementsforname:@"entry"];  (gdataxmlelement *item in items) {      nsdictionary *namespaces = [[nsdictionary alloc] initwithobjectsandkeys:                                 @"media", @"http://search.yahoo.com/mrss/",                                 nil];      nsarray *thumbnails = [item nodesforxpath:@"media:thumbnail']" namespaces:namespaces error:0]; 

i'm i'm declaring namespace incorrectly, can't life of me figure out how properly. can help? i'd prefer solve xml rather using gdata api process youtube (seems overly complicated simple value in rss feed).

thanks!

media:thumbnail inside media:group; need full path elements being selected. take @ xpath tutorial this , don't ignore error responses xpath.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -