Java Examples

From BaseX Documentation
Revision as of 10:18, 6 June 2013 by CG (talk | contribs)
Jump to navigation Jump to search

This page is part of the Developer Section. The following Java code snippets demonstrate how easy it is to run database commands, create collections, perform queries, etc. by integrating the BaseX code. Most examples are taken from our basex-examples repository, in which you will find some more use cases.

Local Examples

Server Examples

 

REST API

XQJ API

Our current XQJ API is based on Charles Foster’s XQJ implementation (closed-source). It communicates with the BaseX server. The basex-examples repository contains various examples on how to use XQJ.

XML:DB API (deprecated)

Note that the XML:DB API does not talk to the server and can thus only be used in embedded mode.