I’m having issues parsing an Atom feed, as in nothing shows up on my tableview for this particular feed. Can anyone verify that this is working?
Should I not be using NSXMLParser?
Here is what I’m looking for, specifically:
-(void)parser:(NSXMLParser *) parser foundCharacters:(NSString *__strong)string{
//save the characters for the current item
if ([currentElement isEqualToString:@"title"]) {
[currentTitle appendString:string];
} else if ([currentElement isEqualToString:@"link"]) {
[currentLink appendString:string];
} else if ([currentElement isEqualToString:@"pubDate"]) {
[currentDate appendString:string];
} else if ([currentElement isEqualToString:@"description"]) {
[currentSummary appendString:string];
}
}
The problem is that you are trying to parse
RSStags in anAtomfeed. They both have a different structure and use a different set of tags. You will have to adjust your parser to parse based on the feed type.