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

Several design questions

I'm storing my data inside an XML file, the data is divided into several
niches.
I expect two things to happen during normal use of the application:
A> Number of niches to grow.
B> Amount of information in niche would grow.
This would result in one big file, it's not too much trouble to change it
now to mutliply files, the question is what would be better from design and
performance perspective?

Several other questions:
I'm reading data from XML in two ways right now:
A> By loading the XML to an XMLDocument and then doing a seria of XPath
queries.
B> By iterating over all the nodes using foreach and a giant switch
statement.
What is better (design & perfomance) would it be better to use XMLReader and
the giant switch? Or is there another way?

Another thing, saving the data:
Currently I'm doing this via XMLDocument.Save() after updating all the
fields that have been changed.
Would XMLWriter be better?

I'm going to write an image to the file, is the only way to retrieve it is
via XMLReader.GetBinary() or does XMLDocument has that option too?

Thanks in advance,
Ayende Rahien
Jul 21 '05 #1
1 1299

"Ayende Rahien" <Ay****@no.spam> wrote in message
news:er****************@TK2MSFTNGP09.phx.gbl...
I'm storing my data inside an XML file, the data is divided into several
niches.
I expect two things to happen during normal use of the application:
A> Number of niches to grow.
B> Amount of information in niche would grow.
This would result in one big file, it's not too much trouble to change it
now to mutliply files, the question is what would be better from design and performance perspective?

Several other questions:
I'm reading data from XML in two ways right now:
A> By loading the XML to an XMLDocument and then doing a seria of XPath
queries.
B> By iterating over all the nodes using foreach and a giant switch
statement.
What is better (design & perfomance) would it be better to use XMLReader and the giant switch? Or is there another way?

Another thing, saving the data:
Currently I'm doing this via XMLDocument.Save() after updating all the
fields that have been changed.
Would XMLWriter be better?

I'm going to write an image to the file, is the only way to retrieve it is
via XMLReader.GetBinary() or does XMLDocument has that option too?


One more thing, I've an information storage class (IE, a class that does
nothing except store information) that I currently load/save from XML.
Would it be wiser to just save the node containing the data about this class
and return it via XPath queries using propeties?
Jul 21 '05 #2

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

Similar topics

1
by: John M | last post by:
Hello, For Microsoft Visual Studio .NET 2003 : In the IDE I can put a datagrid on an aspx form. One of it's property (design time) is datasource. I couldn't find any datasource component on...
1
by: Ayende Rahien | last post by:
I'm storing my data inside an XML file, the data is divided into several niches. I expect two things to happen during normal use of the application: A> Number of niches to grow. B> Amount of...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
1
by: YellowfinTeam | last post by:
Laws and Myths of Usability & Interface Design Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications....
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
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.