Hi, I am writing a java server-side application which needs to store info about educational courses, and users in those courses.
When retrieving data, I need to ask: - does this course already have an entry? - if so, which users are listed there?
When storing data, I need to ask: - does this course already have an entry? If so, append user entry. If not, create course entry, append user entry.
It's not convenient to use a database for this. So my question is: should I create an xml file of users for each course, then check for the existence of the course using file.exists()? Or should I put all courses and users in one xml file? Or some other approach - perhaps not using xml?
Long story. - The application is a plugin in a larger web app which is hosted remotely. Setting up db connections to it is complicated. - I want the plugin to be self-contained and portable. I guess I could use one of those embedded databases - Berkeley? That seems a bit over the top in this case though. [ March 19, 2007: Message edited by: joseph corner ]