473,387 Members | 1,501 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.

Xml and DataSet

Hello!

Xml is used havily when dealing with DataSet. I know that Xml schema is used
by DataSet.
Xml schema is used to verify the structure of an Xml document.

So does this mean that a DataSet is using Xml document internally ?

//Tony
Aug 29 '08 #1
5 1687
On Aug 29, 9:47*am, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
Hello!

Xml is used havily when dealing with DataSet. I know that Xml schema is used
by DataSet.
Xml schema is used to verify the structure of an Xml document.

So does this mean that a DataSet is using Xml document internally ?

//Tony
no

The data is stored in collection classes, not in a XML structure. The
XML is used to load/save it
Aug 29 '08 #2
"Tony Johansson" <jo*****************@telia.comwrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
Xml is used havily when dealing with DataSet. I know that Xml schema is
used
by DataSet.
Xml schema is used to verify the structure of an Xml document.

So does this mean that a DataSet is using Xml document internally ?
I don't know how the DataSet is internally implemented. But you CAN view
its contents as an XML Document thanks to the XmlDataDocument class:

XmlDataDocument doc = new XmlDataDocument(myDataset);

XmlDataDocument is a child class of XmlDocument, so all the methods for
accessing XML through the DOM that are exposed by XmlDocument are also
available from the XmlDataDocument. You can view and modify your DataSet as
XML in this way.

Aug 29 '08 #3
"Tony Johansson" <jo*****************@telia.comwrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
Hello!

Xml is used havily when dealing with DataSet. I know that Xml schema is
used
by DataSet.
Xml schema is used to verify the structure of an Xml document.

So does this mean that a DataSet is using Xml document internally ?
The fact that is doesn't support IXPathNavigable but does support
IXmlSerializable would indicate that it doesn't use an Xml Document
internally. This makes sense since in many circumstances where DataTables
are filled by Adapters that access data in a fairly raw manner (such as SQL
Servers TDS stream) bloating all this with an Xml based store when there is
not even a hint that it will ever be needed as XML would be a bit daft.


--
Anthony Jones - MVP ASP/ASP.NET
Aug 29 '08 #4
Hello!

I know that in some cases are there Xml schema that define the structure for
the DataSet.
Structure means here I assume DataTable, DataRelations and so on.

What is the advantage to have Xml schema to define the DataSet ?

//Tony
"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comskrev i
meddelandet
news:93**********************************@m36g2000 hse.googlegroups.com...
On Aug 29, 9:47 am, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
Hello!

Xml is used havily when dealing with DataSet. I know that Xml schema is
used
by DataSet.
Xml schema is used to verify the structure of an Xml document.

So does this mean that a DataSet is using Xml document internally ?

//Tony
no

The data is stored in collection classes, not in a XML structure. The
XML is used to load/save it
Aug 29 '08 #5
On Aug 29, 10:15*am, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
Hello!

I know that in some cases are there Xml schema that define the structure for
the DataSet.
Structure means here I assume DataTable, DataRelations and so on.

What is the advantage to have Xml schema to define the DataSet ?
It's an standard form of describe the data that is stored using .NET
classes like DataRow, DataTable, etc. You can see it as a
representation of the internal structure of the dataset that can be
understood and transformed/consumed by any program that knows how to
parse XML
Aug 29 '08 #6

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

Similar topics

3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
3
by: Jeronimo Bertran | last post by:
Hi, I have an xml file that encapsulates a dataset definition within a set of tags (<dataset>)... here is an example <?xml version="1.0" encoding="utf-16"?> <dataset> <MyTable>...
5
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
3
by: JJ | last post by:
Hi, I need to pass a dataset to another win form along with a SqldataAdapter. I don't want to recreate the SqlDataAdapter again either. So to pass to another Win form in my windows form app, do...
5
by: Jason | last post by:
I am having problems understanding how to access a datasource only once, fill a single dataset, and then reference that dataset multiple times through different user controls(ascx) found on the...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
16
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.