/** * Custom implementation of FlatXmlDataSet.write so we can enforce column casing * @param dataSet * @param out * @throws IOException * @throws DataSetException */ private static void writeToXml(IDataSet dataSet, OutputStream out) throws IOException, DataSetException { CaseAwareFlatXmlWriter datasetWriter = new CaseAwareFlatXmlWriter(out, "utf-8"); datasetWriter.setIncludeEmptyTable(true); datasetWriter.write(dataSet); } }