Hi Kevin,
There are numerous ways to add database to documents, so we’ll probably need more information to answer your question:
* Do you basically want to mirror the functionality of the existing database commands [1] or functions [2]? * Do you work with the client/server architecture of BaseX? * Do you want to use input streams?
Cheers, Christian
[1] http://docs.basex.org/wiki/Commands [2] http://docs.basex.org/wiki/Database_Module
On Wed, Dec 23, 2015 at 12:03 AM, Kevin S. Clarke ksclarke@gmail.com wrote:
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