A
Ayende Rahien
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
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