sxml = new FileWriter( dataSourcesFile );
} catch ( IOException e ) {
throw new MondrianCatalogServiceException( e );
}
StringWriter sw = new StringWriter();
XMLOutput pxml = new XMLOutput( sw );
pxml.print( "<?xml version=\"1.0\"?>\n" ); //$NON-NLS-1$
dataSources.displayXML( pxml, 0 );
Document doc = null;
try {
doc = XmlDom4JHelper.getDocFromString( sw.toString(), new PentahoEntityResolver() );
} catch ( XmlParseException e ) {