This chapter describes techniques to update and transform XML documents. DB2 pureXML supports three general techniques for modifying XML documents:
• Full document replacement, which allows an application to replace an existing XML document with an updated document. It is up to the application to provide the new document. For DB2, this is a full-document operation. See section 12.1.
• The XQuery Update Facility, which is a standardized extension to XQuery that allows you to modify, insert, or delete individual elements and attributes within an XML document. Such updates are also known as subdocument level updates, node-level updates, or partial document updates. See sections 12.2