code: public static void write(IDataSet dataSet, Writer writer, String encoding) throws DataSetException {
  		if (logger.isDebugEnabled()) {
  			logger.debug("write(dataSet={}, writer={}, encoding={}) - start", new Object[] { dataSet, writer, encoding });
  		}
  
  		FlatXmlWriter datasetWriter = new FlatXmlWriter(writer, encoding);
  		datasetWriter.setIncludeEmptyTable(true);
  		datasetWriter.write(dataSet);
  	}
docs: Write the specified dataset to the specified writer as xml.