using System; using System.IO; using System.Data; class MainClass { static void Main(string[] args) { string MyXMLDoc = @"<title> MyExample</title>"; StringReader MyStringReader = new StringReader(MyXMLDoc); DataSet MyDataSet = new DataSet(); MyDataSet.ReadXml(MyStringReader); } }