Hi!
I am executing all Xqueries through the same runQuery method in Java, and I am running the latest jar-files (8.0.1):
XQDataSource ds = new BaseXXQDataSource();
xqc = ds.getConnection();
XQExpression xqe = xqc.createExpression();
rs = xqe.executeQuery(query);
The query is (in this case):
for $doc in (collection('Users/customer_1'))/*
return (replace value of node $doc/@name with ("My new customer name"))
The update works fine in BaseX Gui, and I suspect the problem is that it does not return anything, and my code expects XQResultSequence. I have tried adding db:output to return part of the query with no luck.
Do you have any suggestions?
Kind regards