Tuesday 2 January 2018

Simplest Code To Import Data From A Xml File To Dataset

Here is a Simple one line code to import xml file to dataset :-

DataSet ds = new DataSet();  
ds.ReadXml(Server.MapPath("XMLFile.xml"), XmlReadMode.InferSchema); 

Hope this will be helpful!

No comments:

Post a Comment