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.


Compared with XMLUnit 1.0, this version expands support for XML Schema in validation and comparisons and vastly improves XPath tests (namespaces and JAXP 1.3's XPath engine are now supported). In addition, several minor but still useful enhancements have been made. All known issues of XMLUnit 1.0 have been fixed.

URL: <XmlUnit/>