iphone - NSXML Parsing through objective C -


i working on xml parsing through objective c. getting trouble following part. please me out. using nsxmlparser class , delegates.

how trace out "url", "type", "height" these tags below xml code.

<image url="http://d.img.com/a/r/rids/20110203/i/r32323.jpg? x=130&amp;y=91&amp;q=85&amp;sig=bjdeybrqfsyuuzj.ffwa8g--"   type="image/jpeg"  height="91" width="130"/> 

implement delegate function

- (void)parser:(nsxmlparser *)parser didstartelement:(nsstring *)elementname namespaceuri:(nsstring *)namespaceuri qualifiedname:(nsstring *)qualifiedname attributes:(nsdictionary *)attributedict 

and inside

nslog(@"url: %@", [attributedict valueforkey:@"url"]); 

etc.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -