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 the second beta of XMLUnit for Java 1.1 has been released; download it from
https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=502282.
This second beta changes the way the schemaLocation and noNamespaceSchemaLocation
attributes of the XMLSchema-Instance namespace are handled. Documents that only
differ in these attributes are now considered similar.
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
http://xmlunit.sourceforge.net/userguide/html/apa.html#Changes%201.1
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.