Created
September 12, 2012 15:26
-
-
Save kristopherjohnson/3707405 to your computer and use it in GitHub Desktop.
Load a DataSet from an XML string (.NET)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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