Iphone 使用NSXMLParser解析Atom时遇到问题

Iphone 使用NSXMLParser解析Atom时遇到问题,iphone,objective-c,ios4,rss,nsxmlparser,Iphone,Objective C,Ios4,Rss,Nsxmlparser,我在解析Atom提要时遇到问题,因为我的tableview中没有显示此特定提要的任何内容。有人能证实这一点吗 我不应该使用NSXMLParser吗 以下是我想要的,特别是: -(void)parser:(NSXMLParser *) parser foundCharacters:(NSString *__strong)string{ //save the characters for the current item if ([currentElement isEqualToS

我在解析Atom提要时遇到问题,因为我的tableview中没有显示此特定提要的任何内容。有人能证实这一点吗

我不应该使用NSXMLParser吗

以下是我想要的,特别是:

-(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];
    }
}

问题是您试图解析提要中的标记。它们都有不同的结构,使用不同的标记集。您必须根据提要类型调整解析器进行解析。

是否正在初始化
当前..
变量?是的,一切都已初始化且正常。它适用于其他提要,但不适用于此提要。我会用错字符串吗?好的。您能给出一些示例代码吗,或者您知道一种查找Atom提要元素名称的方法吗?