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