OutputFormat format = new OutputFormat();
format.setPreserveSpace(true);
format.setOmitXMLDeclaration(true);
XMLSerializer serializer = new XMLSerializer(format);
serializer.setOutputCharStream(outputWriter);
ContentHandler sHandler = serializer.asContentHandler();
// The AtributeNoramilizingContentHandler modifies the base attribute
// so that it is relative to the working dir. If we didn't do this
// the test case would be dependant on and absolute file path.
ContentHandler handler =