[xquery-talk] XQuery Update: replacing element content with a
sequence of nodes
Jonathan Robie
jonathan.robie at redhat.com
Fri Apr 8 17:39:38 PDT 2011
What assumptions can you make about the possible content of that element?
The target of replace needs to be a single node. If the element can
contain multiple nodes, or none, and you don't know in advance, you may
be better off deleting the children of the parent element, then
inserting your content.
In a real application, what you insert may depend on the original
content, of course, so you might test what's there and respond
appropriately.
Jonathan
More information about the talk
mailing list