【发布时间】:2012-05-09 11:02:48
【问题描述】:
我有以下带有相同标签的通用实现的 xml 文件。我想解析这个文件。我可以在 iOS 中解析它吗?
xml 文件:
<?xml version="1.0"?>
<node name="bkl">
<childrens>
<node name="A building">
<childrens>
<node name="hfs"/>
<node name="habc"/>
<node name="def"/>
</childrens>
</node>
<node name="B building">
<childrens>
<node name="hfs2"/>
<node name="habc2"/>
<node name="def2"/>
</childrens>
</node>
<node name="C building">
<childrens>
<node name="hfs3"/>
<node name="hab3"/>
<node name="def3"/>
</childrens>
</node>
</childrens>
</node>
【问题讨论】:
-
试试
NSXMLParser。另外,childrens不是英文单词。
标签: objective-c ios xml parsing xml-parsing