XMLUnit provides assertions and supporting class libraries to test various properties of generated pieces of XML using a popular testing framework. It supports finding the differences between two pieces of XML, validating documents against DTDs or XML Schemas, testing the results of XPath expressions, or asserting properties of Nodes exposed via DOM traversal. Two branches exist: one that supports Java and JUnit and one that supports the .NET Framework and NUnit.
|Tags||Software Development Libraries Java Libraries Testing|
|Operating Systems||OS Independent|
Release Notes: This release creates additional differences when comparing nodes where one node has children and the other one has none. While XMLUnit 1.4 would just report a HAS_CHILD_NODES difference, this release will, in addition, return a CHILD_NODELIST_LENGTH as well as CHILD_NODE_NOT_FOUND differences for each missing node.
Release Notes: XMLUnit for Java 1.4's DifferenceEngine now detects the type attribute from the XML Schema Instance namespace (xsi:type) and treats its value like a QName (i.e., it tries to translate the value's prefix (if any) to the associated namespace URI before comparing the values). This release fixes a bug in assertXpathsEqual when applied to paths containing attributes, as well as a tiny bug in FloatingPointTolerantDifferenceListener.
Release Notes: This release fixes a few bugs and provides a new option for controlling what happens when the documents that are compared contain two XML elements that cannot be matched against each other.
Release Notes: A few bugs were fixed. The order of attributes is ignored. xmlns attributes are no longer treated as normal attributes and the namespace of attributes is now sigificant. Comparisons of empty elements with attributes failed. The binary in this release has been compiled against NUnit 2.4.8. This is expected to be the last XMLUnit release compatible with .NET 1.1.
Release Notes: The major new feature of XMLUnit for Java 1.2 is an alternative XML validation subsystem built on top of JAXP 1.3 which supports validation against alternative XML Schema languages (if your JAXP implementation supports them) and validation of the Schema definition itself. In addition, all known issues of XMLUnit 1.1 have been fixed.