PDA

View Full Version : native xml database for cocoa?




Wizumwalt
Jun 9, 2006, 10:12 PM
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?



superbovine
Jun 10, 2006, 12:18 AM
sleepycat?

Wizumwalt
Jun 10, 2006, 12:36 AM
Yeah, I know sleepycat, but for cocoa? How so?

superbovine
Jun 10, 2006, 12:50 AM
you can integrate c++ with cocoa, so just use the the db api for sleepycat.

HiRez
Jun 10, 2006, 01:43 AM
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.