How to parse a simple XML file using Xcode 4.2.1

20,722

have you checked this tutorial of parsing XML data with NSXMLParser -

http://wiki.cs.unh.edu/wiki/index.php/Parsing_XML_data_with_NSXMLParser

i think your are looking for this.

Also there is an another good way to do this is using TBXML framework - https://github.com/71squared/TBXML

Share:
20,722
125369
Author by

125369

Updated on September 21, 2020

Comments

  • 125369
    125369 over 3 years

    dont get to harsh on me for asking this question, I know this has been asked many times. But the examples I found on the internet are either old or I am having difficulties to port them on to iOS5-Xcode 4.2.1. So I am really looking for a updated simple example where I can parse a simple XML file from an URL, store the values and display them in a tableView. I am looking for some working examples using NSXMLParser. In case if one of you guys have some info about where I can find a working example/internet link which I can follow and make it work on my machine, so that I can play and get some hands of experience on dealing with XML data, before I go on to work with the complex XML data files.

    Any one who can post some code is also highly appreciated, as it would help beginners like me.