Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dataset.ReadXml to Table in C#

1 view
Skip to first unread message

Nigel Scott

unread,
Aug 10, 2006, 2:29:18 AM8/10/06
to
Hi:

The following works well having received the XML file over over a network:

DataSet aDataSet = new DataSet();
aDataSet.Namespace = "AMPDA";
StringReader sr = new StringReader(xmlData);
XmlTextReader reader = new XmlTextReader(sr);
TextReader strReader = TextReader.Synchronized(sr);
aDataSet.ReadXml(reader, XmlReadMode.InferSchema);
dataGrid.DataSource = aDataSet;

Although I create a Table with named columns matching the xml schema I
cannot load this table with the results of the ReadXml.

Any ideas? - thanks

Nigel Scott, MVS


0 new messages