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&y=91&q=85&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
Post a Comment