Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-09-2012, 02:44 PM   #1 (permalink)
Registered Member
 
joeallenpro's Avatar
 
Join Date: Dec 2009
Location: Essex, UK
Age: 19
Posts: 70
joeallenpro is on a distinguished road
Default Need simple XML parser tutorial

Hi guys.

I need to get data from an XML (from a http URL) and be able to store specific keys of data as simple NSStrings to use in the interface, can anybody point me in the right direction??

for instance get an xml from http://www.google.com/pathtoanxml/xml?variable=[AVARIABLEFROMWITHINTHEAPP] (I can do this part)

however getting the app to read and understand the xml is a problem for me.

let's say the XML file contains many keys like this:
<one>
<city data="London"/>
<time data="12:00"/>
</one>
<two>
<city data="London"/>
<time data="12:00"/>
</two>

Now I know that the XML will always have the same strings/keys so theres no need for the app to determine that

I like the app to be able to look for example the key "City" inside "one" and "time" inside "two" put them into NSStrings

thats all I need it to do!

I can only find much more complex tutorials.
__________________
Visit AppStore

"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
joeallenpro is offline   Reply With Quote
Old 02-10-2012, 06:54 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 83
vogueestylee is on a distinguished road
Default

hi, I used TBXML.. was the easiest what I found for me...
vogueestylee is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 390
10 members and 380 guests
chiataytuday, chits12345, fiftysixty, gmarro, KennyChong, kilobytedump, Leslie80, Meoz, ryantcb, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,670
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Yosh_K
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:27 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0