🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.language.csharp
1 messages
1 total messages Started by Nigel Scott Thu, 10 Aug 2006 06:29
Dataset.ReadXml to Table in C#
#250
Author: Nigel Scott
Date: Thu, 10 Aug 2006 06:29
18 lines
1477 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads