The major problem with testing operations that produce XML results is to decide whether the result is correct or not, since a simple textual comparison is not enough.
In this exclusive InfoQ article, XMLUnit and Ant contributor Stefan Bodewig explains how to write tests in the presence of XML, showing detailed example scenarios and how to approach them with the help of the XMLUnit Java framework.