Restructure to produce one XML document for the entire Ant/Quilt run. This needs to be held by the class managing the whole run, QuiltTask if it is an Ant run. Simplest solution: when the test is not forked, pass back the document as a tree instead of serializing it in text form to output. The manager can then merge the trees and output a single document for the run.