I am trying to use XQuery and BaseX to manage some files.xml as databases.
I am using basexclient to send queries to basexserver. For example I have a simple file called library.xml like the following:
<library>
<book>gone with the wind</book>
<book>the thornbirds</book>
</library>
and I would like to add a node, so from basexclient
terminal I send:
XQUERY insert node <book>Dracula</book> as last into doc('library.xml')//library
and then I get the message
Query executed in 10.5 ms
But nothing has changed into the file. Is there a command to commit changes?