• 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
best way to store XML data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: best way to store XML data?
      • From: Lutz Horn <email@hidden>
  • Prev by Date: motivated cocoa developer
  • Next by Date: best way to store XML data?
  • Previous by thread: motivated cocoa developer
  • Next by thread: Re: best way to store XML data?
  • Index(es):
    • Date
    • Thread