I see code example from Microsoft here how to convert DataSet object into XmlDataDocumentto work with XML better but this class is going to be depreica
DataSet
XmlDataDocument