final XmlWriter xmlWriter = new XmlWriter(w);
final AttributeList attList = new AttributeList();
attList.addNamespaceDeclaration("", ExtParserModule.NAMESPACE);
xmlWriter.writeTag(ExtParserModule.NAMESPACE, "testcase", attList, XmlWriter.OPEN);
final DataSourceWriter dsW = new DataSourceWriter(writer,
ds, cc.getDescriptionForClass(ds.getClass()), xmlWriter);
dsW.write();
xmlWriter.writeCloseTag();
w.flush();
}