Convert NSXMLDocument to a NSDictionary?
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