Skip to content

Instantly share code, notes, and snippets.

@kristopherjohnson
Created September 12, 2012 15:26
Show Gist options
  • Save kristopherjohnson/3707405 to your computer and use it in GitHub Desktop.
Save kristopherjohnson/3707405 to your computer and use it in GitHub Desktop.
Load a DataSet from an XML string (.NET)
public static DataSet CreateDataSetFromXMLString(string xml)
{
var dataset = new DataSet();
using (var sr = new StringReader(xml))
{
dataset.ReadXml(sr);
}
return dataset;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment