29 Jun
2021
29 Jun
'21
10:47 a.m.
Hi Jonathan,
... XQUERY ./xquery/merge-proper-nouns-oshb.xq
I don’t have access to the query file you want to evaluate, but I assume your command script should work if you replace XQUERY with the RUN command [1]. You can skip the WRITEBACK option if you perform updates on database. It is only required to update local files [2]: XQUERY file:write(file:base-dir() || 'example.xml', <a/>) SET WRITEBACK true XQUERY insert node <b/> into doc('example.xml')/* XQUERY doc('example.xml') Hope this helps, Christian [1] https://docs.basex.org/wiki/Commands#RUN [2] https://docs.basex.org/wiki/Options#WRITEBACK