Sunday, December 30, 2012

Read XML and convert to dataset


Let's the path of XML file is C:\hello.xml


string strXmlPath="C:\hello.xml";
 DataSet ds = new DataSet();
        ds.ReadXml(strXmlPath);
        return ds.Tables[0];

above method will return table[0] of ds

No comments: