DataTable.ReadXml
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I thought I would try using ReadXml and WriteXml with DataTable instead of DataSet... It appears that I need to use "XmlWriteMode.WriteSchema" when saving a DataTable if I want to read the same xml file back into a DataTable? dt1.WriteXml("settings.xml", XmlWriteMode.WriteSchema); dt2.ReadXml("settings.xml"); If I don't I get this error message: "DataTable does not support schema inference from Xml" Any enlightenment would be appreciated thanks, Ron