Populating Dataset from xml fil

  • Thread starter Thread starter Neel
  • Start date Start date
N

Neel

I have an XML file which has elements with nodes. I can
load this XML file into a .NET xml document and then
populate a dataset with it.

Since this xml file has nesting (only 1 level, like master-
detail relationship) so can I populate 1 datatable with
the parent elements and another datatable with the child
nodes.
Please provide some information on this. Any pointers or
code will be appreciated.

Thanks
neel
 
* "Neel said:
I have an XML file which has elements with nodes. I can
load this XML file into a .NET xml document and then
populate a dataset with it.

Since this xml file has nesting (only 1 level, like master-
detail relationship) so can I populate 1 datatable with
the parent elements and another datatable with the child
nodes.
Please provide some information on this. Any pointers or
code will be appreciated.

It depends on the XML file, but did you have a look at 'DataSet.ReadXml'?
 
Back
Top