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. Image for the cookie policy date
close icon

Can load DataTable from XML?

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

1 Reply

MU Murugan Syncfusion Team January 29, 2007 09:22 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon