final AttributeList rootAttrs = new AttributeList();
rootAttrs.addNamespaceDeclaration("data", MondrianDataFactoryModule.NAMESPACE);
xmlWriter.writeTag(MondrianDataFactoryModule.NAMESPACE, "simple-legacy-mdx-datasource", rootAttrs, XmlWriter.OPEN);
final SimpleLegacyBandedMDXDataFactory mdxDataFactory = (SimpleLegacyBandedMDXDataFactory) dataFactory;
writeBody(bundle, state, mdxDataFactory, xmlWriter);
xmlWriter.writeCloseTag();
xmlWriter.close();
return fileName;
}