Populating Dataset from xml file

  • 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
 
My suggestion is to create a DataSet, either in code, or by pulling from any
database, that has a relationship. Then, output the schema as XML. While
your XML will be somewhat different, you will have the basic rules for how
MS uses XML in DataSets.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
Cowboy,

Would you mind showing a simple code sample demonstrating this technique?
 
Back
Top