Iphone web服务映像的xml解析
我需要解析xml。我的xml确实有图像链接 我的xml示例Iphone web服务映像的xml解析,iphone,Iphone,我需要解析xml。我的xml确实有图像链接 我的xml示例 <root> <child id='1'> child One</child> <childe2> Child two </child2> <image>http://website........link.</image> <image>http://website........link.</image> <image&
<root>
<child id='1'> child One</child>
<childe2> Child two </child2>
<image>http://website........link.</image>
<image>http://website........link.</image>
<image>http://website........link.</image>
</root>
现在我已经采取了NSMutableArray加载图像
这一程序是否正确。我可以实施的任何替代方案
提前感谢。我认为这种方法是正确的,不会造成问题
谢谢这种方法没有错。 将NSMutableArray设置为ivar, 解析XML,在didStartElement NSXMLParser委托中找到图像标记时创建NSMutableArray,将项推送到didEndElement中的数组中,并在需要时从数组中获取图像