That may not answer your question but I create DBs using a dummy xml und replace the whole (and only) file later:
db:create("`{$new-db-name}`", document {<_ xmlns=""></_>}, "`{$new-db-name}`.xml", $index-options)
Am 20.04.2020 um 12:55 schrieb Ramzi Hammouda:
Hello BaseX team,
This may sound simple, but didn’t find how to do it, what is the xquery for creating an empty xml document in a chosen database.
Thanks.
P/Respectons ensemble l'environnement. N'imprimez ce message que si nécessaire. //Let's respect the environment together. Only print this message if necessary./