Hi,

I'm writing a Java module that will do a couple of things, in addition to adding documents to a BaseX database.  I've gotten the other things done, but I'm stuck a bit about how to add docs to the database from a module (I've seen the example that returns xml fragments that can be used from the xquery side).  I see on http://docs.basex.org/wiki/Java_Examples that there are local/embedded and client-api ways to interact, but a module would want to be able to work in either situation.  Are there any module examples that write to the database that someone would like to share (or just point me in the right direction)?

Thanks,
Kevin