NSXMLParser is already built in. You should look at this article for a more thorough comparison.
Simple and quick way to parse an XML file in iOS7
Вопрос
I have a simple XML file like this
<?xml version="1.0"?>
<catalog>
<timezone>
<name>UTC-11:00</name>
<place>
<value>American Samoa</value>
<value>Samoa</value>
</place>
</timezone>
<timezone>
<name>UTC-10:00</name>
<place>
<value>Honolulu</value>
<value>Tahiti</value>
</place>
</timezone>
</catalog>
What is the canonical/standard way to parse this in iOS? I want to save "names" and "places" for each name.
Решение
Другие советы
It is NSXMLParser
. Official documentation
Не связан с StackOverflow