Hi all,

trunk [1] now has Java and .NET interfaces for a difference engine that
can do what the Java version of XMLUnit 1.3 does.  The plan is to add
DOM based implementations and port the XMLUnit Java 1.3 code base to use
it.

The ideas are very similar to XMLUnit 1.3 but with a few twists.

Instead of Difference there is a Comparison and an independent
ComparisonResult which represent "this is what I compared" and "this is
what I think of the outcome".

ComparisonListeners get notified of each Comparison, each passing
Comparison (replaces MatchTracker) or each failed Comparison (replaces
part of DifferenceListener).  ComparisonListener is a one-method
interface in Java and a delegate in .NET and it is possible to attach
multiple of them to the DifferenceEngine (using an event in .NET).

ElementSelector (a delegate in .NET) replaces ElementQualifier - there
can only be one per DifferenceEngine.

DifferenceEvaluator may alter the outcome of a comparision and tell the
DifferenceEngine to stop the comparision - replaces the remaining part
of DifferenceListener and ComparisonControler.  Again a delegate in .NET
and there can only be one per DifferenceEngine.

I intend to remove the ATTRIBUTE_ORDER difference type completely (there
is no guarantee the parser will return them in document order anyway)
and may choose to use a few different defaults from XMLUnit 1.x (like
calling Text and CDATA nodes with the same content similar).

Feedback more than welcome.

Stefan

[1] 
http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/main/java-core/net/sf/xmlunit/diff/
    
http://xmlunit.svn.sourceforge.net/viewvc/xmlunit/trunk/xmlunit/src/main/net-core/diff/
    but you better check out
    https://xmlunit.svn.sourceforge.net/svnroot/xmlunit/trunk/xmlunit
    for a full picture

------------------------------------------------------------------------------
_______________________________________________
Xmlunit-general mailing list
Xmlunit-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmlunit-general

Reply via email to