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.2 has been released; download it from
https://sourceforge.net/project/showfiles.php?group_id=23187&package_id=15921&release_id=605991
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. See
<http://xmlunit.sourceforge.net/userguide/html/ar01s04.html#JAXP%201.3%20Validation>
for more details.
In addition all known issues of XMLUnit 1.1 have been fixed, for a
more comprehensive list see
<http://xmlunit.sourceforge.net/userguide/html/apas02.html>.
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.