It looks like the basex-test projects shows how to do what I want. Using QueryProcessor and the Xdm classes.
Kendall
From: <basex-talk-bounces(a)mailman.uni-konstanz.de<mailto:basex-talk-bounces@mailman.uni-konstanz.de>> on behalf of Kendall Shaw <kendall.shaw(a)workday.com<mailto:kendall.shaw@workday.com>>
Date: Monday, February 22, 2016 at 4:56 PM
To: "basex-talk(a)mailman.uni-konstanz.de<mailto:basex-talk@mailman.uni-konstanz.de>" <basex-talk(a)mailman.uni-konstanz.de<mailto:basex-talk@mailman.uni-konstanz.de>>
Subject: [basex-talk] Add docments and retrieve results using java
How can I incrementally import XML documents into the database, using java? And, how can I incrementally retrieve query results and XML documents from the database, using java?
Either I am missing it, or XQJ does not allow you to store data into a database. Should I use xmldb API? Or, should I use the native API? If so how do I incrementally read and write, instead of loading everything into a string or reading and writing to/from files?
Kendall