Compare Method (XmlReader, XmlReader)

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

XmlDiff.Compare Method (XmlReader, XmlReader)

Performs a comparison of two XML documents or fragments parsed by XmlReader objects.

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

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.

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.