Populating Dataset from xml fil

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
 
H

Herfried K. Wagner [MVP]

* "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'?
 

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