Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 19, 2011, 12:45 AM   #1
jpmcgrath
macrumors newbie
 
Join Date: Jul 2011
Help with Parsing

I have an XML document that has names, addresses, and phone numbers in it. I want to load the names in a table, but then set up contact cards without making more than two interface files. Is there a simple way to do this?

Thanks in advance, I'm new to dev.
jpmcgrath is offline   0 Reply With Quote
Old Jul 19, 2011, 10:53 AM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
iOS gives you an NSXMLParser class. Read its class reference doc, and look at the sample code linked from there.

If you can't figure it out from that, then you're probably in over your head. You should then stop writing your current app, and go learn the fundamentals first.

You can't hop in the cockpit of an F-18 and fly it with no training or practice. You can't write apps without training or practice, either.
chown33 is offline   0 Reply With Quote
Old Jul 23, 2011, 02:03 AM   #3
seepel
macrumors 6502
 
Join Date: Dec 2009
Quote:
Originally Posted by chown33 View Post
iOS gives you an NSXMLParser class. Read its class reference doc, and look at the sample code linked from there.

If you can't figure it out from that, then you're probably in over your head. You should then stop writing your current app, and go learn the fundamentals first.

You can't hop in the cockpit of an F-18 and fly it with no training or practice. You can't write apps without training or practice, either.
And if you are not in over your head, NSXMLParser is a SAX type parser, but I believe there are a few DOM style third party parsers out there (quick Google search will surely provide them). So if the tree is not large you could give one of those a try.
__________________
Free iOS App that turns your music library into an info graphic.
Phonographic
seepel is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
RSS parsing help (simple) johnnyfla123 iPhone/iPad Programming 12 Nov 29, 2013 11:16 AM
parsing text similar to markdown mraheel iPhone/iPad Programming 11 Jan 30, 2013 09:47 AM
parsing and displaying in tableview jennylcf iPhone/iPad Programming 2 Jan 28, 2013 07:31 AM
parsing XML in iphone? hajira iPhone 0 Sep 24, 2012 05:51 AM

Forum Jump

All times are GMT -5. The time now is 08:58 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC