• 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
Convert NSXMLDocument to a NSDictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convert NSXMLDocument to a NSDictionary?


  • Subject: Convert NSXMLDocument to a NSDictionary?
  • From: Lorenzo Thurman <email@hidden>
  • Date: Sat, 14 Apr 2007 15:30:09 -0500


Is there a simple way of doing this? Cocoa does not seem to provide a method for doing this, at least nothing within either class seems to fit the fit the bill. I found this thread in the archives:

http://tinyurl.com/2j9aok

Which leads me to the conclusion that I'll need to write my own parser.
Is that the case?
What I need to do is init a NSXMLDocument with a URL (weather data).
I'd like to then be able to reference the key/pairs via a NSDictionary.
Of course, if there's a better way, feel free to suggest.

TIA

"A good friend will help you move. A really good friend will help you move a body"
--Unknown




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Convert NSXMLDocument to a NSDictionary?
      • From: Chris Hanson <email@hidden>
    • Re: Convert NSXMLDocument to a NSDictionary?
      • From: Ken Tozier <email@hidden>
  • Prev by Date: Re: NSArray - waste of time?
  • Next by Date: Re: Convert NSXMLDocument to a NSDictionary?
  • Previous by thread: Re: Plain Text Editing
  • Next by thread: Re: Convert NSXMLDocument to a NSDictionary?
  • Index(es):
    • Date
    • Thread