473,545 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing an XML file through strong typed dataset

HI all,

I have an xml file, I need to be able to read the data into strong typed
dataset for further use in my application
Can someone point me to documentation as to how I can do this. I have
absolutley no idea where to start.

Robert
May 21 '07 #1
3 3842

http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!148.entry
....
There are 2 options:

1. Your xml already matches the schema of the DataSet. Then all you need
is
MyStrongDS ds = new MyStrongDS();
ds.ReadXml();

2. Your original source xml does not match the DataSet schema. Use my blog
entry.
Read the blog entry either way.

"Robert Bravery" <me@u.comwrot e in message
news:Op******** ******@TK2MSFTN GP03.phx.gbl...
HI all,

I have an xml file, I need to be able to read the data into strong typed
dataset for further use in my application
Can someone point me to documentation as to how I can do this. I have
absolutley no idea where to start.

Robert


May 21 '07 #2
HI,
Thanks

"sloan" <sl***@ipass.ne twrote in message
news:uQ******** ******@TK2MSFTN GP02.phx.gbl...
>
http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!148.entry
...
There are 2 options:

1. Your xml already matches the schema of the DataSet. Then all you need
is
MyStrongDS ds = new MyStrongDS();
ds.ReadXml();
Yes it does, so this might be the best option.
2. Your original source xml does not match the DataSet schema. Use my
blog
entry.
Read the blog entry either way.
yes I will

Thanks
Robert

>
"Robert Bravery" <me@u.comwrot e in message
news:Op******** ******@TK2MSFTN GP03.phx.gbl...
>HI all,

I have an xml file, I need to be able to read the data into strong typed
dataset for further use in my application
Can someone point me to documentation as to how I can do this. I have
absolutley no idea where to start.

Robert



---
avast! Antivirus: Inbound message clean.
Virus Database (VPS): 000742-0, 21/05/2007
Tested on: 21/05/2007 07:08:07 PM
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000742-0, 21/05/2007
Tested on: 21/05/2007 07:10:23 PM
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com

May 21 '07 #3

//Yes it does, so this might be the best option.//

Then read the MS KB I mention at the blog.

"Robert Bravery" <me@u.comwrot e in message
news:ex******** ******@TK2MSFTN GP03.phx.gbl...
HI,
Thanks

"sloan" <sl***@ipass.ne twrote in message
news:uQ******** ******@TK2MSFTN GP02.phx.gbl...

http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!148.entry
...
There are 2 options:

1. Your xml already matches the schema of the DataSet. Then all you
need
is
MyStrongDS ds = new MyStrongDS();
ds.ReadXml();

Yes it does, so this might be the best option.
2. Your original source xml does not match the DataSet schema. Use my
blog
entry.
Read the blog entry either way.
yes I will

Thanks
Robert


"Robert Bravery" <me@u.comwrot e in message
news:Op******** ******@TK2MSFTN GP03.phx.gbl...
HI all,

I have an xml file, I need to be able to read the data into strong
typed
dataset for further use in my application
Can someone point me to documentation as to how I can do this. I have
absolutley no idea where to start.

Robert


---
avast! Antivirus: Inbound message clean.
Virus Database (VPS): 000742-0, 21/05/2007
Tested on: 21/05/2007 07:08:07 PM
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000742-0, 21/05/2007
Tested on: 21/05/2007 07:10:23 PM
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com

May 21 '07 #4

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

Similar topics

2
2240
by: George Grodentzik | last post by:
I created a typed dataset from which I am trying to access the data. When I use the following code to access a row string name =dataset.person.firstName I receive an error System.IndexOutOfRangeException as if there are no rows. Yet when I dump the data to a file I receive (sample of file) <?xml version="1.0" standalone="yes"?><Dataset1...
2
1300
by: The Bear | last post by:
After a dataset has been populated from a text file, is it possible to update a text file from a dataset once changes are made? TB
3
1849
by: paul.phillips | last post by:
Hi I have the following table (*=Primary Key): tblNews: fldID (Indentity) fldSite int * fldPageID int * fldSection int * fldContent
3
2423
by: Chris Thunell | last post by:
I have 2 forms, on 1 form i use the wizards to create a strong typed dataset with tables from an SQL database... and from that i can do stuff like: me.daEmployee.fill(me.dataset11.tblEmployee) plus some 3rd party controls can see it the datatables etc etc. Is there anyway when i open the second form that this information that has already...
3
2738
by: Freeon | last post by:
Hi, I am looking for a way to sort a strong typed dataset. It would seem the most straightforward way is to use a dataview. The only problem is when I use the dataview I seem to loose the strong typed properties from my original dataset Anyone that can point me to an example of how to sort my dataset and maintain the use of my typed...
1
1529
by: Ray Stevens | last post by:
I am confused. I was given a fairly complex xsd schema for use in a project. When I added this to a website in VS 2005, it shows up in intellesense and I can instantiate, manipulate it etc. with the following code in the BLL layer: public LXML CreateLXML(ref Tsrsubi1.Xormsga2 etx) { LXML lxml = new LXML(); DateTime dt = DateTime.Now;...
4
1965
by: SteveT | last post by:
I am wanting to populate several treeviews, one for the <TRs> group and one for the <TGsgroup. Is there a simplier way to populate the Treeview than the one I did below? It seems difficult to get to the correct DataSet values. <?xml version="1.0" encoding="utf-8" ?> <TestSample> <TRs> <TR1>
6
1873
by: alexia.bee | last post by:
Hi all, I am new to C# so please bear me :). I have an app which uses datagridview. it has 8 columns. I also have struct which has 8 members(the same as the datagridview). when I add row to the gridview, i add the same data to this staruct and then add this struct instance to a list. the app creates more then one file with different...
5
1510
by: slinky | last post by:
I'm struggling with what should be a very basic .aspx/XML issue. I have an XML file. I have a textbox for a user to enter data and a button to submit the data. I don't wont the user to see the other records on the screen. I'm using Visual Web Developer Express 2005, vb.NET) I've tried several different strategies from books and online...
0
7499
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
6022
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.