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