XmlDiff Operation xd:node

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

XmlDiff Operation xd:node

The XDL Diffgram contains xd:node element if it is describing changes on the child nodes of a node in the source document, or if it is describing the position at which new nodes were added. The xd:node element contains the match attribute with a path descriptor identifying the referenced node.

Here is an example of what this element may look like:

<xd:node match="4"/>

Here is an example of xd:node element that is used to identify the fourth node of the current source element. The changes on the child nodes of the fourth node are described in the child nodes of the xd:node element.

<xd:node match="4"> 
  <xd:change match="1">Changed text</change>
  <xd:remove match="2" />

See Also

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

© 2002 Microsoft Corporation. All rights reserved.