• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: referencing XML Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: referencing XML Data


  • Subject: Re: referencing XML Data
  • From: Hal Mueller <email@hidden>
  • Date: Mon, 15 Sep 2008 11:20:04 -0700

Working from the simple NSXMLParser example from
http://weblog.bignerdranch.com/?p=48
I suggest you use parser:didStartElement:... to look for <customer> and begin accumulating fields, and use parser:didEndElement:... to note completion of first_name, last_name, etc and react accordingly.


In the simplest case you can just use NSLog to spit out the contents of the fields, to get yourself started.

It took me less than an hour to plug in the samples and get stub methods going.

Hal


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >referencing XML Data (From: Amy Heavey <email@hidden>)
 >Re: referencing XML Data (From: Nathan Kinsinger <email@hidden>)

  • Prev by Date: Cocoa Developer Position in San Jose, Ca
  • Next by Date: Re: NSUInteger in for-loop?
  • Previous by thread: Re: referencing XML Data
  • Next by thread: Re: referencing XML Data
  • Index(es):
    • Date
    • Thread