Cocoa XML

Discussion in 'Mac Programming' started by DavidLeblond, Sep 21, 2004.

  1. DavidLeblond macrumors 68020

    DavidLeblond

    Joined:
    Jan 6, 2004
    Location:
    Raleigh, NC
    #1
    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?
     
  2. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #2
    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.
     
  3. DavidLeblond thread starter macrumors 68020

    DavidLeblond

    Joined:
    Jan 6, 2004
    Location:
    Raleigh, NC
  4. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #4
    Oo, the libxml wrapper. Now you're asking for trouble =) Good luck though!
     
  5. DavidLeblond thread starter macrumors 68020

    DavidLeblond

    Joined:
    Jan 6, 2004
    Location:
    Raleigh, NC
    #5
    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.
     

Share This Page