public static DataSet GetDataSet(this string xmlString) { DataSet set = new DataSet(); try { StringReader input = new StringReader(xmlString); XmlTextReader reader = new XmlTextReader(input); set.ReadXml(reader); } catch (Exception) { set = null; } return set; }
No comments: