native xml database for cocoa?

Discussion in 'Mac Programming' started by Wizumwalt, Jun 9, 2006.

  1. Wizumwalt macrumors newbie

    Jun 9, 2006
    Hey all,

    I'm new to cocoa and having a hard time finding some sort of XML database to use with my app which I'm building in xcode.

    At least I think that's what I need. I want to put a book in a database and search for text or verses in it and I have formats availabe in XML (it's bible text).

    The only data access framework I've found in XCode for cocoa is coredata, which I find very strange if that's all that's available. I have to go to other vendors for sql or relational dbases.

    Anyone have ideas here?
  2. Wizumwalt thread starter macrumors newbie

    Jun 9, 2006
    Yeah, I know sleepycat, but for cocoa? How so?
  3. superbovine macrumors 68030


    Nov 7, 2003
    you can integrate c++ with cocoa, so just use the the db api for sleepycat.
  4. HiRez macrumors 603


    Jan 6, 2004
    Western US
    If you can find a way to import the XML into a CoreData database (SQLLite), that should work. Of course, it's not going to be kept in the same XML form (I think), so that's only appropriate for a one-time seeding of the data, but one of the save formats for CoreData is, in fact, an XML format. Worst case, you could write a parser in Cocoa that stuffs the XML into a CoreData database.

Share This Page