473,385 Members | 1,397 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,385 software developers and data experts.

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 3837

http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!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.comwrote in message
news:Op**************@TK2MSFTNGP03.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.netwrote in message
news:uQ**************@TK2MSFTNGP02.phx.gbl...
>
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!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.comwrote in message
news:Op**************@TK2MSFTNGP03.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.comwrote in message
news:ex**************@TK2MSFTNGP03.phx.gbl...
HI,
Thanks

"sloan" <sl***@ipass.netwrote in message
news:uQ**************@TK2MSFTNGP02.phx.gbl...

http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!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.comwrote in message
news:Op**************@TK2MSFTNGP03.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
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...
2
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
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
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) ...
3
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...
1
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...
4
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...
6
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...
5
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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?
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.