473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Populating Dataset from xml file

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
Jul 21 '05 #1
1 1279
Cor
Hi Neel,

If you have Visual.Studio.Net you can open the xml file in that, when you
than do a right click on it, you can say generate dataset or XSD I did not
check it.

You then get a nice XSD from your dataset with a graphical representation in
your view.
(You see than all datatables etc.)

I hope this helps,

Cor
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.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Juan | last post by:
When populating a dataset I get an error if the data being retrieved includes a string field with a Null value: "Not valid store type: DBNull". What kinf of data type can i define in the dataset to...
2
by: Janus | last post by:
Hello. I need a little advice for populating the treeview control. I dont want my application to hang while populating the treeview, there is a lot of data what's the best approach? Maybe...
1
by: John | last post by:
Hi all, I have an interesting situation. I have a datagrid I'm currently populating using a dataset but now I need to introduce some extra records into this. I'm unsure of which method to use....
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
4
by: Paul | last post by:
I sometimes get a timeout error when populating my datagrid, the code is WizardConnection.Open() UpdateCommand.CommandText = "EXECUTE sp_assign_user '" & PhysOffice.SelectedValue & "', '" &...
1
by: Neel | last post by:
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...
0
by: Glum | last post by:
I have created a DataSet in a VB.NET program and wanted to know if there is an easy way to push tables from the DataSet to a microsoft access database. What I am trying to do is take a...
3
by: sck10 | last post by:
Hello, I am creating a form for users to enter information about a lab and the members of the lab. I have one form (FormView) that they use to enter information about that lab. The keyvalue is...
1
by: mike11d11 | last post by:
For some reason I'm getting no data populating in my crystal report. I built my crystal report off my dataset in my project, and I fill the dataset when opening the main form, and count the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.