Hi Travis, all xquery operations are atomic. If you want to replace the value of the node you have to write the query as following: -> xquery replace value of node root()/child with "new data" I hope this helps, as first advice. Feel free to ask for more, Andreas, BaseX Team Travis Webb schrieb:
Also, is the 'replace' operation atomic?
-tjw
On Sun, Mar 28, 2010 at 3:47 PM, Travis Webb <tjwebb@vt.edu <mailto:tjwebb@vt.edu>> wrote:
I am trying to use xquery replace but cannot, it seems, figure out the correct syntax. As I understand it, the replace query should be of the form: "xquery replace expr with node", so I'm trying to do the following:
> xquery replace root()/child with <child>new data</child> Stopped at line 1, column 15: Syntax: XQUERY [query] Evaluate XQuery.
I've tried a number of variations but I get the same error. Any ideas? Thanks.
-tjw
------------------------------------------------------------------------
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk