C# Programming
09-16-2009, 10:33 AM
Hi
I think must be doing something silly here, but cannot see it. My problem is reading in data from an XML Document into a DataSet in C#.
I have declared a Data Set and a Data Table and used the XMLReader in the Data Set to read in the XML Document - ds.XMLReader("A.xml"). However, I am unable to point the dataset to the datatable.
The dataset does read in the XML without error, and I can write it out again to a new XML Document.
Can someone show me how to point a dataset to a datatable?
Thanks
I think must be doing something silly here, but cannot see it. My problem is reading in data from an XML Document into a DataSet in C#.
I have declared a Data Set and a Data Table and used the XMLReader in the Data Set to read in the XML Document - ds.XMLReader("A.xml"). However, I am unable to point the dataset to the datatable.
The dataset does read in the XML without error, and I can write it out again to a new XML Document.
Can someone show me how to point a dataset to a datatable?
Thanks