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 12-24-2009, 03:23 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 66
Question NSXMLParser

Hey, could someone please give me a breakdown of how to use NSXMLParser.

I have been searching for hours and trying different things but cant get it working. I was just wondering what the different parts of the code are that i need.

my xml looks like this:
HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<Assets>
  <File id="1">
    <title>Title Here</title>
    <link>a link here</link>
    <description>a description here</description>
  </File>
  <File id="2">
   <title>Another title</title>
   <link>another link</link>
   <description>Description</description>
  </File>
</Assets>
this is quite frustrating. help is greatly appreciated

thanks

-Mike
mikelowe is offline   Reply With Quote
Old 12-24-2009, 07:55 PM   #2 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,178
Default

Have you read the Apple docs on the class? They're quite clear and straightforward.

iPhone Dev Center: NSXMLParser Class Reference

iPhone Dev Center: Event-Driven XML Programming Guide for Cocoa: Introduction to Event-Driven XML Programming Guide for Cocoa
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 12-24-2009, 11:37 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 66
Unhappy

I'm trying the apple docs right now, and its a bit clearer, but I still am pretty lost.
mikelowe is offline   Reply With Quote
Old 12-24-2009, 11:40 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

There are 2 Apple sample projects that I'm aware of: SeismicXML and XMLPerformance. If I can figure it out using those, anybody can.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Old 12-27-2009, 06:24 PM   #5 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 66
Default

Thanks a lot! I figured it out (after a few days of pondering)
mikelowe is offline   Reply With Quote
Reply

Bookmarks

Tags
nsxmlparser, parsing, 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: 281
18 members and 263 guests
2WeeksToGo, ADY, apatsufas, dacapo, Dani77, Fritzer, ghost, HDshot, headkaze, iDifferent, mer10, mystic.purple, Rudy, smethorst, stoneage, superg, tathaastu, Zool
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,878
Threads: 89,224
Posts: 380,732
Top Poster: BrianSlick (7,129)
Welcome to our newest member, olga2000
Powered by vBadvanced CMPS v3.1.0

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