Compare Method (XmlReader, XmlReader, XmlWriter)

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

XmlDiff.Compare Method (XmlReader, XmlReader, XmlWriter)

Performs a comparison of two XML documents or fragments parsed by XmlReader objects and outputs an XDL Diffgram describing the differences.

[Visual Basic]
Overloads Public Function Compare( _
  ByVal sourceReader As XmlReader, _
  ByVal changedReader As XmlReader, _
  ByVal diffgramWriter As XmlWriter _
) As Boolean
[C#]
public Boolean Compare(
  XmlReader sourceReader,
  XmlReader changedReader,
  XmlWriter diffgramWriter
);

Parameters

sourceReader
An XmlReader parsing the original source XML document or fragment to be used in the comparison.
changedReader
An XmlReader parsing the changed XML document or fragment to be used in the comparison.
diffgramWriter
The XmlWriter to which you want to output the XDL Diffgram.

Remarks

The result of Compare method may differ when comparing documents loaded in DOM and documents parsed by XmlTextReader. That is, if the document contains entity references that are expanded by the DOM.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP, Windows .NET Server

See Also

XmlDiff Class | XmlDiff Members | Microsoft.XmlDiffPatch

© 2002 Microsoft Corporation. All rights reserved.