The XQuery Update Facility (abbreviated as XQUF) provides five basic operations acting upon XML nodes:
insert one or several nodes inside/after/before a specified node
delete one or several nodes
replace a node (and all its descendants if it is an element) by a sequence of nodes.
replace the contents (children) of a node with a sequence of nodes, or the value of a node with a string value.
rename a node (applicable to elements, attributes and processing instructions) without affecting its contents or attributes.