XML to NSDictionary
XML to NSDictionary
- Subject: XML to NSDictionary
- From: Alexander Griekspoor <email@hidden>
- Date: Fri, 10 Nov 2006 11:30:02 +0000
Hi,
I have an XML file that I want to convert to a nsdictionary for easy
access/enumeration etc. instead of using XPath queries all the time
to do lookups (this works but gets rather slow and seems expensive
with large xml files). So I was playing with the following thought:
would it perhaps be a good plan to do an XSLT operation on the xml
document to at once convert it into apple's plist format and use that
to instantiate an NSDictionary from? Has anyone ever tried something
alike or could comment on whether this would be something smart to do?
Another thing to speed up parsing my xml file would be to use an xslt
to remove all unwanted crap from the xml file, after which xpath
queries will be much faster I guess? I don't like the xml parser as
an alternative for the dom based approach because it gives you so
much info to handle that I don't care about (but perhaps not after
the xslt based removal of unwanted info that I was thinking about
above). Any feedback is welcome.
Alex
***********************************
Mek (Alexander Griekspoor)
MekenTosj.com
Web: http://www.mekentosj.com
Mail: email@hidden
***********************************
_______________________________________________
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