code: public static void write(IDataSet dataSet, OutputStream out) throws IOException, DataSetException {
  		logger.debug("write(dataSet={}, out={}) - start", dataSet, out);
  
  		FlatXmlWriter datasetWriter = new FlatXmlWriter(out);
  		datasetWriter.setIncludeEmptyTable(true);
  		datasetWriter.write(dataSet);
  	}
docs: Write the specified dataset to the specified output stream as xml.