On Wed, Jul 14, 2010 at 5:55 PM, Christian Grün
<christian.gruen@gmail.com> wrote:
> [...] it seems to me that replacing a part of a XML document
> (which is what I'm trying to do) should be a straightforward operation for
> an XML database.
Sure it is. What have your tried so far? XQuery offers (actually too)
many ways to do the same thing; you could opt for replacing the $entry
variable with the XML fragment in question. Or you could use the
replace expression, e.g.
let $old := doc('libx2_feed')/atom:feed/atom:entry[atom:id=$id]
let $new := <node>to be added</node|
replace node $old with $new
Christian