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