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

xml using datasets

hi i am new at this...whats the better way to read xml files..create a
dataset and read them using xml only for validation ...
or
use xmlreader to validate and read them?
thanks in advance

Nov 12 '05 #1
2 1033
"Ramakant" <ra********@yahoodontspam.com> wrote in message news:e1**************@TK2MSFTNGP14.phx.gbl...
hi i am new at this...whats the better way to read xml files..create a
dataset and read them using xml only for validation ...
or
use xmlreader to validate and read them?


Ramakant,

If you already have an ADO.NET DataSet, then it's more convenient
to use ADO.NET's support for XML. In many cases, the relational
qualities of a DataSet constrain what's acceptable in the way of an
XML document -- but if you're already there and have a mind to
apply ADO.NET style constraints to the DataSet in order to validate
it (due to similarity with your Data Model, for instance) then there's
not much reason to change.

OTOH, if you don't already have an ADO.NET DataSet it seldom
makes sense to shoehorn your XML into one. Developers often
experience difficulties for just this reason -- their XML is not really
relational but they try to push it into a DataSet and have problems.
When your XML isn't relational, using XmlValidatingReader or
XmlDocument (or XPathDocument if you're leaning to processing
the XML with XSLT) is advisable.
Derek Harmon
Nov 12 '05 #2
thanks a lot

Nov 12 '05 #3

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

Similar topics

0
by: William Ryan | last post by:
At the risk of sounding like a Big 5 consultant, "It depends". 1) Strongly typed datasets rock, they are faster than untyped, use intellisense... but your reason for wanting to use them is...
1
by: Geir Holme | last post by:
Hi all. Using Visual Studio VB.NET and SQL Server 2000. When I drag tables from the SQL Server Explorer into a dataset I am building I get the table, fieldnames and types. But, why doesn't it put...
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
4
by: John Dalberg | last post by:
I noticed the starterkits timetracker & issue tracker load data from a database into custom collections (arraylists) which bind to a datagrid. What are the advantages of using custom collections...
19
by: Larry Lard | last post by:
In the old days (VB3 era), there was a thing called the Data Control, and you could use it to databind controls on forms to datasources, and so (as the marketing speak goes), 'create database...
7
by: Ryan | last post by:
Quite awile ago I posted to this newsgroup in regards to using Datasets in my VB 2005 application. About how many Datasets should be used.. a limit to the number of tables that should be included...
5
by: Ronald S. Cook | last post by:
We're designing an app and see two basic ways to return data from the business tier to the client: 1) Everything in DataSets 2) Fill properties of objects and manage accordingly Any opinions...
2
by: S.Tedeschi | last post by:
Hi all gurus. I'm trying to switch to VS 2005, from VS 2003. I've an ASP.NET 1.1 app heavily relying on StronglyTyped DataSets, with lots of FindByKey..., dataSet.Tablename, and similar methods....
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
9
by: gardnern | last post by:
We have X number of data sets, of Y length each. For example... Small, Medium, Large and Red, Green, Blue, Yellow We need to generate a list of all possibilities Small Red
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: 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...
0
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...
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.