Populating Dataset from xml file

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
 
C

Cowboy \(Gregory A. Beamer\)

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!
**********************************************************************
 
S

scorpion53061

Cowboy,

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

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