C# and Dataset from XML

J

Jason Huang

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
 
K

Kevin Spencer

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.
 
S

Shilpa Patel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top