Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DavidLeblond

macrumors 68020
Original poster
Jan 6, 2004
2,351
666
Raleigh, NC
I'm writing a small application in Objective-C that mimics a similar application I coded in Visual Basic years ago. I'd like it to read the same files, which are in XML. I've found a lot of different XML libraries to use with Cocoa, but what do you guys prefer/use?
 

iMeowbot

macrumors G3
Aug 30, 2003
8,634
0
I'm lazy and just use property lists for that kind of thing. It's such a tiny DTD and the schema is basically built into the data, so it's easy to use them elsewhere.

CFXMLParser and CFXMLTreeCreateXMLData are also built into OS X if you need something more specialized, like duplicating that old layout. It doesn't have an ObjC wrapper, but IMO it doesn't especially need one.
 

DavidLeblond

macrumors 68020
Original poster
Jan 6, 2004
2,351
666
Raleigh, NC
iMeowbot said:
Oo, the libxml wrapper. Now you're asking for trouble =) Good luck though!

Actually it turned out quite well. My implementation was a bit cludgey but as long as it works...

Not that I was using any sort of complicated schema or anything.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.