createDocument(dataSet).write(out);
Document document = buildDocument(dataSet);   document.write(out);
    public static void write(IDataSet dataSet, OutputStream out)            throws IOException, DataSetException    {        createDocument(dataSet).write(out);    }