Vision

C# Read from XML File

by admin on Jul.20, 2009, under c#

private static DataTable GetXMLData(string DataTableToReturn)
{
      XmlDocument doc = new XmlDocument();
      doc.Load(@”c:\filename.xml”);

      DataSet ds = new DataSet();
      ds.ReadXml(new XmlNodeReader(doc));
      return ds.Tables[DataTableToReturn];
 }

No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...