You are saying:
-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict{
element = elementName;
if ([element isEqualToString:@"item"] || [element isEqualToString:@"entry"]) {
self.imageURLS = [[NSMutableArray alloc]init];
description = [[NSMutableString alloc] init];
}
}
This is unlikely to be right, because it means that every time you encounter a new "item" or "entry" element, you are throwing away the existing self.imageURLS
and replacing it with an empty array.