XmlDiff Operation xd:remove

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

XmlDiff Operation xd:remove

An xd:remove operation occurs when a node or an XML fragment has been removed from the original source document, and no longer appears in the changed document. The following is an example of what a xd:remove element might look like:

<xd:remove match="3"/ >

The preceding shows that the third child of the current element has been removed.

The following table describes the attributes of the xd:remove element.

Attribute name Data Type Description
match path descriptor Relative path descriptor evaluating to a list of nodes or a list of attributes that have been removed.
subtree bool An option indicating whether the descendants of the nodes have been removed as well (whole subtrees removed) or not. Default is yes. If the value is no, then the match attribute must evaluate to a single node.
opid unsigned int Operation ID.

The following table describes the content of the xd:remove element.

Content Description
(xd:node, xd:add, xd:remove, xd:change)* Diff operations for the child nodes of the removed node (for element only) when the subtree options is set to false. The child nodes of the removed node become child nodes of the parent node of the removed node.

See Also

XML Diff Functionality | XML Diff Language (Diffgram) | Path Descriptors | XmlDiff Operation xd:node | XmlDiff Operation xd:add | XmlDiffOperation xd:change | Extended Operations | Example of a Diffgram |XmlDiff Class

© 2002 Microsoft Corporation. All rights reserved.