Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
David Klein
Courses Plus Student 1,456 PointsHow to get data from XML
Hello guys, i'm just wondering how can i get xml data form url and parse to tableview or collectionview on xcode? anyone have a good tutorial or any link to xml tutorial? thank you.
1 Answer
Rob Randell
13,809 PointsHave a look at the native NSXMLParser class and it's methods and delegate. This class can retrieve data from a URL or from the application bundle by initialising the Parser with the data from the NSData class. You can then populate that data into an array or dictionary which then can be used for a tableview or collectionview.
David Klein
Courses Plus Student 1,456 PointsDavid Klein
Courses Plus Student 1,456 Pointsthank you for your answer. i'm reading it about NSXMLParser now.