Namespace Change Operation

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

Namespace Change Operation

This extended operation identifies a change of namespace declaration. It consists of one xd:add operation, to show the addition of the new namespace declaration, and one xd:remove operation, to show the removal of the old namespace declaration. Additionally, the XDL Diffgram may contain any number of the xd:change operations with the same opid for every element or attribute name that has its namespace URI changed due to this action.

The following is an example of what a namespace change element looks like:

<xd:descriptor type="namespace change" opid="3" oldNs="http://some.uri" newNs="http://updated.uri"/>

This shows that a namespace change has occurred, and shows the old namespace and new namespace. All operations with an opid attribute with the value 3 are part of this action.

The following table describes additional attributes of the xd:descriptor element for a namespace change operation.

Attribute name Description
oldNs Old namespace URI.
newNs New namespace URI

See Also

XML Diff Functionality | Running Comparisons Between Documents, Fragments, or Nodes | Setting Options that Affect the Comparison | Selecting the Algorithm for the Comparison | Limitations | XML Diff Language (Diffgram) | Path Descriptors | Extended Operations | Move Operation | Prefix Change Operation |XmlDiff Class

© 2002 Microsoft Corporation. All rights reserved.