使用 ios/obj-c 解析这个 XML 纹理图集文件的最佳方法是什么?
<?xml version="1.0" encoding="UTF-16"?>
<TextureAtlas imagePath="Atlas@4x.png">
<!-- Created with Adobe Flash CS6 version 11.0.4.452 -->
<!-- http://www.adobe.com/products/flash.html -->
<SubTexture name="ArmyIcon instance 10000" x="0" y="0" width="202" height="207"/>
<SubTexture name="foodIcon instance 10000" x="202" y="0" width="201" height="207"/>
<SubTexture name="gemsIcon instance 10000" x="403" y="0" width="202" height="206"/>
<SubTexture name="goldIcon instance 10000" x="605" y="0" width="201" height="206"/>
<SubTexture name="lightningIcon instance 10000" x="806" y="0" width="202" height="241"/>
<SubTexture name="logsIcon instance 10000" x="0" y="241" width="198" height="170"/>
<SubTexture name="marketButton0000" x="198" y="241" width="263" height="245"/>
<SubTexture name="populationIcon instance 10000" x="461" y="241" width="201" height="207"/>
<SubTexture name="rocksIcon instance 10000" x="662" y="241" width="201" height="207"/>
<SubTexture name="statusIcon instance 10000" x="0" y="486" width="276" height="206"/>
<SubTexture name="storageIcon instance 10000" x="276" y="486" width="202" height="207"/>
<SubTexture name="t00010000" x="478" y="486" width="340" height="306"/>
<SubTexture name="t00020000" x="0" y="792" width="340" height="306"/>
<SubTexture name="waterIcon instance 10000" x="340" y="792" width="201" height="206"/>
</TextureAtlas>
我想找到它的 subTexture 部分,并将这些字符串保存在一个数组中,或者如果可能的话,我想我可以像数组一样索引这个 XML 文件,有什么想法吗?