🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #250

Dataset.ReadXml to Table in C#

#250
From: 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
Technical Details
Message-ID: <44dad23e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1a86463bbae9d19e,start
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Nigel Scott" <mvsoft@telus.net>
From: "Nigel Scott" <mvsoft@telus.net>
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Dataset.ReadXml to Table in C#
Date: Thu, 10 Aug 2006 00:29:18 -0600
Lines: 20
Organization: MVS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 161.184.18.55
Message-ID: <44dad23e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155191358 161.184.18.55 (9 Aug 2006 23:29:18 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail