Vikas Ahlawat

Vikas Ahlawat

  • NA
  • 564
  • 818.1k

XML reading problem, getting error

Feb 22 2011 1:53 AM
When I try to read xml in datatable then i got error "DataTable does not support schema inference from Xml."

            XmlTextReader textReader = new XmlTextReader("C:\\XMLFile1.xml");
            DataTable dt = new DataTable();
            dt.ReadXmlSchema("C:\\XMLFile1.xml");
            dt.ReadXml("C:\\XMLFile1.xml");

Please help me.

Answers (1)