By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

C# and Dataset from XML

P: n/a
Hi,

In my C# Windows Form project, I used to get my Dataset and Datareader from
the SQL query string to my SQL Server 2000.
But now I would like to use an XML file as the data source.
Would someone give me some advice?
Thanks for help.

Jason
Mar 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
First you need to identify what sort of "XML File" you're talking about. An
XML document can represent literally *any* kind of data in *any*
configuration.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Jason Huang" <Ja************@hotmail.com> wrote in message
news:eN**************@TK2MSFTNGP14.phx.gbl...
Hi,

In my C# Windows Form project, I used to get my Dataset and Datareader
from the SQL query string to my SQL Server 2000.
But now I would like to use an XML file as the data source.
Would someone give me some advice?
Thanks for help.

Jason

Mar 29 '06 #2

P: n/a


There is a direct method of DataSet object which is "ReadXml()" .It has
one parameter which is XML file name, and another is Xmlread mode.

This method reads an XML file ans stores it to DataSet.

*** Sent via Developersdex http://www.developersdex.com ***
Mar 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.