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 PROTECTED]</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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to