The following Java code snippets demonstrate how easy it is to run database commands, create collections, perform queries, etc. via the BaseX API. Most examples are taken from our [https://github.com/BaseXdb/basex-examples/tree/master/src/main/java/org/basex/examples basex-examples] repository, in which you will find some more use cases.
Note that we recommend everyone to use our own APIs{{Mark|Since 7.2.1}}, as they offer better performance and are better supported by our core teamBaseX uses Charles Foster’s generic [http://xqj. The use of the <code>XML:DB<net/basex/code> and <code>XQJ</code> APIs is discouraged: as these APIs do not utilize API], which fully utilized the client/server architecture of BaseX, their use may lead to conflicting database access operations.Note that the {{Mono|XML:DB}} API can only be used in embedded mode.
==Local Examples==