DataSet ds = new DataSet(); StringWriter sr = new System.IO.StringWriter(); ds.WriteXml(sr, System.Data.XmlWriteMode.WriteSchema); strXml = sr.ToString()which returns the string the way I want it, but I am still going through all the overhead of a DataAdapter, DataSet, StringWriter...