Reading XML with DataSet

G

Guest

Hi

I' m quite new to this, so this will be a very common problem:

How can I read the contents of a XML file into a DataSet? Is there a
function for this? Can anyone provide source code?

Thanks a lot
Peter
 
M

Mike Edenfield

Peter said:
Hi

I' m quite new to this, so this will be a very common problem:

How can I read the contents of a XML file into a DataSet? Is there a
function for this? Can anyone provide source code?

DataSet.ReadXML();

The XmlReadMode specifies how the dataset should determine the schema --
you can provide one inline, or it can infer one from the format, or you
can provide a strongly-typed dataset and force the XML data to import
into that schema.

--Mike
 

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