• 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
referencing XML Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

referencing XML Data


  • Subject: referencing XML Data
  • From: Amy Heavey <email@hidden>
  • Date: Sat, 13 Sep 2008 19:50:31 +0100

I've got an NSXMLDocument *custdoc

but I can't work out how to actually access the data in the document, I've looked at NSXMLElement, NSXMLParser, NSXMLNode but I just can't work out the correct code.

sample xml:

<sesbuddycustimport>
−
<customer>
<first_name>Willow</first_name>
<last_name>Tree Crafts</last_name>
<address_1>99 Leggatts Way</address_1>
<city>Herts</city>
<zip>WD24 5NQ</zip>
<country>GBR</country>
<user_email>email@hidden</user_email>
</customer>
−
<customer>
<first_name>L****</first_name>
<last_name>Lin****</last_name>
<address_1>9****</address_1>
<city/>
<zip>S***</zip>
<country>GBR</country>
<user_email>la**********</user_email>
</customer>

How can I set an NSString *firstName to the value?

I appreciate any help,

Many Thanks

Amy Heavey



_______________________________________________

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


  • Follow-Ups:
    • Re: referencing XML Data
      • From: Nathan Kinsinger <email@hidden>
  • Prev by Date: Re: How do people typically implement dialog controllers?
  • Next by Date: Re: referencing XML Data
  • Previous by thread: Re: Distributed objects NSURL is always encoded as proxy? is this a bug?
  • Next by thread: Re: referencing XML Data
  • Index(es):
    • Date
    • Thread