Re: [basex-talk] Create a document in a created database

2020-04-20 Thread Christian Grün
Dear Ramzi,

As Omar has stated, you can use XQuery to create a database with an
initial empty document:

  db:create('db', , 'doc.xml')

A new empty document can be added to an existing database as follows:

  db:add('db', , 'doc.xml')

See more examples in our documentation [1]. You can also use BaseX
commands to create, add or replace documents [2].

Best,
Christian

[1] https://docs.basex.org/wiki/Database_Module
[2] https://docs.basex.org/wiki/Commands





On Mon, Apr 20, 2020 at 12:56 PM Ramzi Hammouda
 wrote:
>
> 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.


[basex-talk] Create a document in a created database

2020-04-20 Thread 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.