我正在尝试使用以下 XQuery(在 eXide 中)更新 XML 文件中的节点:
xquery version "3.0";
let $update := doc('db/apps/xmlFiles/Customers.xml')//Customers[ID = 6]
return replace value of node $update/LastName with 'Morris'
但我收到此错误,阻止我运行查询:
执行表达式时发现错误:org.exist.xquery.XPathException: err:XPST0003 unexpected token: value [at line 4, column 16]
有谁知道这可能是什么问题?任何帮助和建议将不胜感激