XmlDiffOptions Enumeration

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

XmlDiffOptions Enumeration

The XmlDiff class allows the setting of different options that affects the behavior of the comparison, as well as the resulting XDL Diffgram. The following table describes the enumeration property that affects what items are included for consideration during the comparison. The default values of the options are false.

Member Name Description
IgnoreChildOrder The order of child nodes of each element is ignored when true. When this option is selected, two nodes with the same value that differ only by their position among sibling child nodes, are treated as the same nodes.
IgnoreComments Comment nodes are not compared when true.
IgnoreDtd Document Type Declaration (DTD) is not compared when true.
IgnoreNamespaces The namespace URIs of the element and attribute names are not compared when true. This option also implies that the name prefixes are ignored.

When this option is selected, then two names with the same local name, but having a different namespace URI and prefix, are treated as the same names.

IgnorePI Processing instructions are not compared when true.
IgnorePrefixes The prefixes of element and attribute names are not compared when true. When this option is selected, then two names that have the same local name and namespace URI, but have a different prefix, are treated as the same names.
IgnoreWhitespace Significant white spaces are not compared when true, and all text nodes are normalized by discarding any leading and trailing white space characters (#x9, #x10, #x13, #x20), and by replacing sequences of white space characters by a single space (#x20) character.
IgnoreXmlDecl The XML declaration is not compared when true.
None When passed into the XmlDiff constructor as its argument, specifies that all the options in the enumeration are false.

See Also

Microsoft.XmlDiffPatch

© 2002 Microsoft Corporation. All rights reserved.