Reading XML with DataSet

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top