我是iOS開發新手,在這一刻我已經實現了NSXMLparser,但我真的不知道如何分離具有相同名稱的標籤,但不同內容,如<description>。在某些feed中,這個標籤只有摘要,其他的包含「img src」,我也想提取它。 (有或沒有CDATA) Example of description tags wich i need to grab the images and then pass
我嘗試加載屬性元素。在這篇文章中有很多代碼來展示我所擁有的並且清楚(希望)所有問題。 Parser.h #import <Foundation/Foundation.h>
@interface Parser : NSXMLParser
@property (nonatomic, strong) NSString *rowElementName; // this is the element