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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 01-31-2010, 05:08 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 2
Default XML and UITableView

I need to download an XML file, parse it and display it in a "multi-level" UITableView. The XML file looks like this:

Code:
<?xml version="1.0" encoding="utf-8" ?>
<persons>
  <person id="1" name="Adam Smith">
    <sport id="1" name="discus" result="10" />
    <sport id="2" name="longjump" result="15" />
    <sport id="3" name="javelin" result="18" />
  </person>
  <person id="2" name="John Williams">
    <sport id="2" name="longjump" result="7" />
    <sport id="3" name="javelin" result="21" />
  </person>
</persons>
However, I can't find a simple code example! Yes, I have read the SeismicXML sample code, and I've read a tutorial about Core Data, but these cover more topics than what I need. I just need to download an XML file and display it in a "multi-level" UITableView.

Can someone please help me?
irvinfletcher is offline   Reply With Quote
Old 08-14-2010, 06:03 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: San Francisco, California
Posts: 1
Default XML file parser

Quote:
Originally Posted by irvinfletcher View Post
...Can someone please help me?
Not sure if you got your answer, but I came across this link:

iPhone - Core Data and UITableView | blog.sallarp.com

A useful tutorial, complete with sample code. He includes an XML file parser that you might find helpful.

Good luck!
DrMacMusic is offline   Reply With Quote
Old 12-06-2010, 07:46 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 1
Default Check this link

Check this link. At least there is the answer about how to write right path to downloaded XML file at app's local file system.

Last edited by Osbuic; 12-06-2010 at 07:51 PM.
Osbuic is offline   Reply With Quote
Reply

Bookmarks

Tags
uitableview, xml

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: 254
23 members and 231 guests
@sandris, ADY, Dani77, diyora, FAED, fredidf, F_Bryant, GHuebner, HDshot, JasonR, mer10, Oral B, prchn4christ, Rudy, smithdale87, Speed, spiderguy84, stekki, tgjorgoski, Thompson22, Touchmint, twerner, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,752
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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