Implements export to XML for test run results.