473,399 Members | 2,478 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,399 software developers and data experts.

XML DataSet Vs.XmlTextReader ... Which to use

Hi,

I have a multi-level complex XML that I like to process and store in the
database. I'm comfortable with using DataSet and then reading the tables
(XML is parsed into 7 tables in my case) and processing the data. However,
just to become familar with XmlTextReader, I've done the same thing using
XmlTextReader. Any major difference between the two that I should be aware
of for a production level application? Especially when the XML is really
complex. Is using DataSet.ReadXml a solid method to read XML and process it?
Thanks
Maz.

Nov 17 '05 #1
1 2878
I should advice only to use the DataSet.ReadXml() method if the xml file
is not to complex and contains kind of tables. (so only use it if it was
writen wy DataSet.WriteXml())

use the XmlTextReader if your Xml file has always the same schema

another possible approach is to get a schema en then use Serialization.

greetz,
Dries

Maziar Aflatoun schreef:
Hi,

I have a multi-level complex XML that I like to process and store in the
database. I'm comfortable with using DataSet and then reading the tables
(XML is parsed into 7 tables in my case) and processing the data. However,
just to become familar with XmlTextReader, I've done the same thing using
XmlTextReader. Any major difference between the two that I should be aware
of for a production level application? Especially when the XML is really
complex. Is using DataSet.ReadXml a solid method to read XML and process it?
Thanks
Maz.

Nov 17 '05 #2

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

Similar topics

0
by: Patrick Kearney | last post by:
Hi All, I have seen this type of question raised in various groups but no one has supplied a definitive answer. I am trying to load a dataset schema that has an xs:include. Project policy is to...
2
by: Marty McDonald | last post by:
I have an array of objects (my own custom class). I'm trying to convert that array to a dataset. So I serialize the array to XML, then try to load the XML to a dataset. MemoryStream mem = new...
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>...
2
by: binvij | last post by:
Hi Guys ! I want your views on this An xml file can be loaded into a dataset in the following ways: XmlTextReader reader = new XmlTextReader("inrss.xml"); DataSet ds = new DataSet();...
5
by: George Durzi | last post by:
Folks, I'd like to write out a DataSet's Xml into an XmlReader? How do I do that? Thanks!
1
by: John Boers | last post by:
Hello, I have an aspx page that reads info from a database and puts in in a dataset. Then an XML-file is created by a myDataset.WriteXml("myInfo.xml") statement. After that the XML-file must...
4
by: John Boers | last post by:
I have an aspx page that reads info from a database and puts in in a dataset. Then an XML-file is created by a myDataset.WriteXml("myInfo.xml") statement. After that the XML-file must be read by...
1
by: Marcos Martínez | last post by:
I am trying to generate and to consume a file RSS dinamicamente. I generate it correctly, if I call from the explorer (http://localhost/Prueba/rss.aspx) or an application client RSS Bandit, for...
0
by: c.w.browne | last post by:
Hi, Ive had a bit of a look around for other people with this problem and cant find anything that solves it in my case, so I'm afraid im going to have to bother you all with a post of my own. ...
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
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: 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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.