Read an xml file into a dataset : DataSet Xml : ADO.Net C# Examples


C# Examples » ADO.Net » DataSet Xml »

 

Read an xml file into a dataset









    
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);
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo ADO.Net
» DataSet Xml