Web Technologies Logger
Pages
Home
Contact Us
About Us
Sitemap
Privacy Policy
Search This Blog
Thursday, 4 April 2013
Open and read an XML file to Dataset
foreach (string file in Directory.GetFiles("write your path", "*.xml"))
{
if (file.Length > 0)
{
dsMenu = new DataSet();
dsMenu.ReadXml(file);
DataTable dt = dsMenu.Tables[0];
DataTable dt2 = dsMenu.Tables[1];
DataTable dt3 = dsMenu.Tables[2];
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment