Use the dataset's WriteXml method.