referencing XML Data
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