best way to store XML data?
best way to store XML data?
- Subject: best way to store XML data?
- From: Michael Hanna <email@hidden>
- Date: Mon, 24 Oct 2005 11:47:58 -0700
I have XML data that I need to store in an obj-c data structure.
What's the best way to keep all the attributes and data?
for example:
<parent attrib1="foo" attrib2='"bar">
<header>
<title xml:lang="en">Title</title>
<desc xml:lang="en">desc</desc>
</header>
<data>
<options>
<style link="yes" color="auto">
</options>
<field>foo</field>
<field>bar</field>
</data>
</parent>
I was thinking of creating an NSDictionary called parent, but I'm not
sure how to store the attrib1 and attrib2 attributes for instance.
would <header> be a good candidate for another NSDictionary? I'm not
sure of a really efficient way to store it's subattributes(title,
desc and their attributes).
I cannot use NSXMLDocument, as this is a 10.3.9 project.
any suggestions would be greatly appreciated.
Michael
--
Michael Hanna
email@hidden
iChat: michaelkhanna(AIM)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden