XMLUnit for Java is a library that supports testing of generated XML content.
It supports comparison of XML snippets, DTD and Schema validation, XPath
queries and programmatic tests. XMLUnit offers strong integration with
JUnit but can be used stand-alone or with other test frameworks as well.
Today XMLUnit for Java 1.1 has been released; download it from
Compared with XMLUnit 1.0 the 1.1 version expands support for XML Schema
in validation and comparisions 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, a full list can be found at
All known issues of XMLUnit 1.0 have been fixed.
The release is available as a binary or a source zip archive. Both
archives contain the new User's Guide in PDF and HTML format. Please
use the OpenPGP signatures found in
http://xmlunit.sourceforge.net/checksums/ to verify the integrity of
the released files.