Hello Erdal,
a database consists of (multiple) documents. When you create a database with the given command it will be en empty database without any document. So to write into it you will have to add at least one document first, e.g. by using the ADD command (http://docs.basex.org/wiki/Commands#ADD) or db:add() (http://docs.basex.org/wiki/Database_Module#db:add)
Cheers Dirk
On 10/06/2016 06:03 PM, Erdal Karaca wrote:
Hi, When creating an empty database, then trying to insert a node into its root, I get the following error message:
Command: create db test
XQuery: insert node <test></test> into /
Error: [XUDY0027] Insert target is an empty sequence.
How can I populate an empty database? - I am using basex 8.5.3.
Thanks!