How to read xml data ino datatable
how to read xml data into datatable
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 4, 2012, 7:26 PM EST
DataSet reportData = new DataSet();
reportData.ReadXml(Server.MapPath("test.xml"));
GridView1.DataSource = reportData;
GridView1.DataBind();
Refer
http://www.java2s.com/Code/CSharp/XML/LoadXMLfiletoDataTablethenaddDataTabletoListView.htm
Thanks