If you're trying to change the actual thing, isn't the syntax going to be
insert node <Line_1 line="1">Content 1</Line_1> into
doc('/TestCppClient/Test.xml')/root
? If it's update (= do this in memory), I'd expect
return update {insert node <Line_1 line="1">Content 1</Line_1> into
doc('/TestCppClient/Test.xml')/root }
because update always has expression braces for the change that gets applied as the update.
-- Graydon
On Sat, May 9, 2026, at 18:52, Ben Engbers via BaseX-Talk wrote:
Hi,
While improving my C++ test application for the libBasexCpp library, I
tried to execute this line:
update insert <Line_1 line="1">Content 1</Line_1> into
doc('/TestCppClient/Test.xml')/root
This resulted in a crash. And since I only know the basics from XQuery,
I wanted to use the GUI for debugging this instruction.
Even in the GUI this line could not be executed.
I consulted Mistral/leChat and it came to the conclusion that probably I
haven't enabled the XQuery Update facility. But in the GUI I don't see
how I could enable the update facility.
I am using linux/Fedora with standard open-jdk. Should I install
additional jar-files?
Ben
--
Ben Engbers
Grietjeshof 77
6721 VH Bennekom
+31 6 23634840