Hi Nigel,
1. You have to run a query on the database like: for $doc in collection() let $path := base-uri($doc) return $path
2. Yes you can do that, see the following example: script test (save as test): create db test xquery insert node <root /> into doc("test") xquery doc("test")/root
run the script: java -cp basex-6.2.9.jar org.basex.BaseX (or BaseXClient) < test
3. There is currently no 'reload' command...So you have to replace the file by your own.
4. You can have a look at the homepage on http://www.inf.uni-konstanz.de/dbis/basex/commands or just ask for more information.
I hope i could help, dont hesitate to ask for more.
Kind regards, Andreas
Am 19.10.2010 20:30, schrieb Nigel Alderton:
I have some beginner questions regarding BaseX Client;
- How can I list the documents in a database?
- Is there a way to batch BaseX Client commands up to execute several
commands automatically like a DOS batch file without having to manually type them each time? 3. Is there a 'reload' command to reload a document from it's source file or do I have to use the 'add' command and specify a file? 4. Is there any documentation regarding the BaseX Client commands other than the 'help' text?
Thanks,
Nigel
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de