Load XML file in DataSet

DataSet DS = new DataSet();
DS.ReadXml(Server.MapPath("Products1.xml"));
DG1.DataSource = DS;
DG1.DataBind(); 

4 comments: