How is JSON converted to XML in order to ADD to a database?
JSONObject jsonTweet = tweets.getJSONObject(Long.toString(id)); xmlStringTweet = XML.toString(jsonTweet);
Do you know how to create a database and add documents as JSON via the BaseX GUI? If yes, you can enable the InfoView panel, and you will see the commands that are called in the background. In the next step, you can call these commands with Java.
See [1] for the available BaseX options, and see [2] for an example the assigns an option via the SET command.
[1] http://docs.basex.org/wiki/Options [2] https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/or...