lundi 1 juin 2015

XML or SQLite for simple task in multiplatform app

I was toying lately with the idea of a simple publication schedule app. It would allow user to search the database for a book title and get the information about it's upcoming release. Additionaly, one would be able to search via publisher, title and date, display full schedules for a publisher, display full schedule for all the publishers, display certain month for one title, publisher or all the publishers and so on. Finaly, user would be able to make a 'shorthand list' with only the titles he wishes too be displayed.

So, all in all, one data entry would consist of: Publisher, Title, Issue Number, Publication Date, ISBN and non-searchable information such as Description and Creative Team. Not much, really.

The thing is, I want to make it as a C# Win app (that one might have and data adding feature, just for me, to maintain the database easily), JavaScript scripted site and perhaps cordova mobile app all using one shared database (JS/Cordova would be end-user and therefore read only). I know it's gonna be hassle to write same code in two languages but actually that's the point.

What I mean to ask is: Would You go with XML for this task, or should I go an extra mile and implement an SQLite database? It's gonna be shared by apps in two different languages and naturally I'm expecting there will be some differences in handling both, depending on the language. Normally, I would lean toward XML, for there's not that much data to work with, so XML would do just fine, but SQL might be more versatile in the long run. Plus, it's always a valuable tool to have. But so is XML too. Which one in Your opinion is better suited to task at hand?

Aucun commentaire:

Enregistrer un commentaire