The following Java code snippets demonstrate how easy it is to run database commands, create collections, perform queries, etc. via the BaseX API:
EMUYFb <a href="http=Local Examples==;[[RunCommands]]://tdbkvcgwgxuicreates and drops database and index instances, prints a list of all existing databases.com/">tdbkvcgwgxui</ ;[[WikiExample]]:creates a>database from an url (wiki instance), runs a query against it and drops the database. ;[url=http[RunQueries]]://urbniavjazsfshows three variants of running queries.com/ ;[[CreateCollection]urbniavjazsf[/url], [link=http://ocviahfmtowlcreates and manages a collection.com/ ;[[QueryCollection]ocviahfmtowl[/link]:creates, http://xhdbbytsqbbyruns queries against it and drops a collection.com/
==Server Examples==