I want to build a lightweight, "database" backed application, where the data can be stored in XML--- and use jaxB to move data to and from the persistant state.

However, I havent been able to find any good resources regarding using an XML file as a database for a live application --- although this is an unorthodox method, for my particular app, it's ideal (small data, needs to be user editable, users are smart enough to edit XML without screwing up).....

My concerns are obvious :locking /transactions/etc.... Unless someone has already addressed these issues, it might be a bad idea to try to use an XML file as a live data store . I Don't need 100 transactions a minute... But some degree of support for data integrity is, of course, in my best interests.

Is there any precedent for such an application of JaxB?