We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Can load DataTable from XML?

Thread ID:

Created:

Updated:

Platform:

Replies:

55294 Jan 26,2007 01:28 PM Jan 29,2007 04:22 PM Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On January 26, 2007 01:28 PM

Hi there,
The DataTable object has a method ReadXML(), but when I try to use it, I get a runtime error saying DataTable does not support schema inference from XML. Can you help? What is the best approach for loading a combo with data from XML?

DataTable dt = new DataTable("Table1");
dt.ReadXml("PortfolioList.xml"); //Runtime error here

Thanks,
Dimitri

Murugan [Syncfusion]
Replied On January 29, 2007 04:22 PM

Hi Dimitri,

Herewith I have attached the sample for your requirement. Please have a look at the sample and let me know if it helps.

TCB_55294

If the problem still exists, please refer the forum article below

DataTable does not support schema inference from Xml

Thanks for using Syncfusion products.

Regards,
Murugan P.S

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;