Using the four basic XQuery updating expressions, you can
create complex updating expressions to update existing XML data. When
using DB2® XQuery, updating expressions
are used within the modify clause of a transform
expression.
Delete expression
A delete expression deletes zero or more nodes from a node
sequence.
Insert expression
An insert expression inserts copies of one or more nodes
into a designated position in a node sequence.
Rename expression
A rename expression replaces the name property of a data
model node with a new QName.
Replace expression
A replace expression replaces an existing node with a new
sequence of zero or more nodes, or replaces a node's value while preserving
the node's identity.