這可能是一個基本的問題,但是,我有一玩就是XML格式。我想抓住揚聲器和揚聲器在字典中的行,以便將其添加到數組中。這裏是格式 <SPEECH>
<SPEAKER>Narrator</SPEAKER>
<LINE>Two households, both alike in dignity,</LINE>
<LINE>In fair Verona, where we lay
我是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