Also, is the 'replace' operation atomic? 

-tjw

On Sun, Mar 28, 2010 at 3:47 PM, Travis Webb <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