You should parse out the media:thumbnail
and media:thumbnail2x
nodes in the parser:didStartElement:namespaceURI:qualifiedName:attributes:
delegate method and extract the thumbnail URLs from the attributeDict
dictionary:
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict {
element = elementName;
if ([element isEqualToString:@"item"]) {
item = [[NSMutableDictionary alloc] init];
title = [[NSMutableString alloc] init];
link = [[NSMutableString alloc] init];
image = [[NSMutableString alloc] init];
image2x = [[NSMutableString alloc] init];
comments = [[NSMutableString alloc] init];
} else if ([element isEqualToString:@"media:thumbnail"]) {
image = [attributeDict objectForKey:@"url"];
} else if ([element isEqualToString:@"media:thumbnail2x"]) {
image2x = [attributeDict objectForKey:@"url"];
}
}
You can do the same for the enclosures, should you need them.