我想將每個元素存儲在數組中。像這樣的鏈接解析xml並將每個元素存儲在iphone中的數組中
在這個環節有喜歡滑蓋多個每日新聞,最新的頭條新聞,Slider1等
有滑塊和最新的頭條新聞所以在這個相同的密鑰縮略圖,內容識別我想在不同的陣列來存儲。
任何一個讓我知道如何分析它
http://bizfy.com/demo/biscoot/response1.php
<contentResponse>
<slider>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a1.png</thumbNail>
<contentId>img001</contentId>
</item>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a1.png</thumbNail>
<contentId>img002</contentId>
</item>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a1.png</thumbNail>
<contentId>img003</contentId>
</item>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a1.png</thumbNail>
<contentId>img004</contentId>
</item>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a1.png</thumbNail>
<contentId>img005</contentId>
</item>
</slider>
<latestHeadlines>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a2.png</thumbNail>
<heading>SRKs Kashmir NOstalgia</heading>
<shortDescription>
Being in Kashmir has made Shah Rukh Khan nostalgic as the superstar's father always wanted him to visit the valley. "My father's one unfulfilled wish was to bring me to Kashmir because his mom was from here.
</shortDescription>
<views>369</views>
<rating>3</rating>
<contentId>news001</contentId>
</item>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a2.png</thumbNail>
<heading>SRKs Kashmir NOstalgia</heading>
<shortDescription>
Being in Kashmir has made Shah Rukh Khan nostalgic as the superstar's father always wanted him to visit the valley. "My father's one unfulfilled wish was to bring me to Kashmir because his mom was from here.
</shortDescription>
<views>369</views>
<rating>3</rating>
<contentId>news001</contentId>
</item>
<item>
<thumbNail>http://www.bizfy.com/demo/biscoot/a2.png</thumbNail>
<heading>SRKs Kashmir NOstalgia</heading>
<shortDescription>
Being in Kashmir has made Shah Rukh Khan nostalgic as the superstar's father always wanted him to visit the valley. "My father's one unfulfilled wish was to bring me to Kashmir because his mom was from here.
</shortDescription>
<views>369</views>
<rating>3</rating>
<contentId>news001</contentId>
</item>
</latestHeadlines>
</contentResponse>
我要分析此類型的XML。
請給我建議。
感謝
按照這些幫助... 1. http://stackoverflow.com/questions/10877374/how-to-parse-通過xml解析器/ 10877758#10877758這個屬性就像這個和這一個2. http://stackoverflow.com/questions/10064262/reading-xml-file-in-iphone –