Dear Chas,
the easiest way to talk to BaseX is to use our own API. You could start looking at the Local Examples, given at:
Note that the linked examples use the syntax from BaseX 6.1 and before. If you want to use the latest version from the Maven repository, I'd recommend looking at the updated examples from our svn repository, such as e.g. in
https://svn.uni-konstanz.de/dbis/basex/trunk/examples/src/main/java/org/base...
Our own API was designed to be as simple as possible. If you have more questions, feel free to ask. Christian ___________________________
Christian Grün University of Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49-7531-88-4449, Fax: +49-7531-88-3577 http://www.inf.uni-konstanz.de/~gruen
On Tue, Jul 6, 2010 at 7:21 AM, Charles F. Munat charles.munat@gmail.com wrote:
I'm working on a Maven web project and I'd like to use BaseX in embedded mode to store XML and XHTML documents. I've experimented with other databases in embedded mode, and generally I include a jar (hopefully via Maven, though not always), then I can use the API to create a session, create databases, collections, and documents, run queries, etc.
I found the well-hidden Maven configuration to add Maven to the pom.xml file, but I am having a hard time finding any documentation or examples that show me how to use the API. The examples I have found use sockets to connect to a running instance of the database server. This is not what I had in mind. Is it the only way to use BaseX, or am I missing a more direct way?
Thanks for clarification...
Chas. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk