xmlunit

XMLUnit compares a control XML document to a test document or the result of a transformation, validates documents, and compares the results of XPath expressions.