Fill DataSet with the data from XML : Xml DataSet « XML « C# / CSharp Tutorial






using System;
using System.Xml;
using System.Xml.Xsl;
using System.Xml.XPath;
using System.Data.Common;
using System.Data;

class MainClass
{
  static void Main(string[] args)
  {
    DataSet ds = new DataSet();
    
    ds.ReadXml(@"c:\Sample.xml ");
  }
}








30.28.Xml DataSet
30.28.1.Fill DataSet with the data from XML
30.28.2.Load XML to DataSet
30.28.3.Save data in a DataSet to xml document
30.28.4.Create Data with DataSet and DataRow and save to xml
30.28.5.Output DataSet to Xml
30.28.6.Reading XML with DataSet