C# XML storage

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I was wondering if someone has ever tried storing data in XML files and then reading back from them, just like as if someone would do from an Acess database. If yes, are there any advantages disadvantages or speed issues with that methodology.
I am wondering if it would be a better option to store data into XML files, and then use it in the application, for quering and displaying info, since the schema info can also be incorporated with XML.

With Regards
Sunny
 
Sunny,
I have worked with XML several times with .NET.But there are some
limitations if the size of the XML file is too big.
It depends on the nature and scope of your application. With .NET,working
with XML is very fast.XMLTextReader and XMLTextWriter dealing with XML is so
easy and fast. The System.Xml namespace provides standards-based support
for processing XML.
here is the link :

http://msdn.microsoft.com/library/d...tml/frlrfSystemXmlXmlTextWriterClassTopic.asp

I love DataSet.ReadXml .. Here is the link..

http://msdn.microsoft.com/library/d.../frlrfsystemdatadatasetclassreadxmltopic2.asp

Regards,
Marshal Antony
http://dotnetmarshal.com






Sunny said:
Hi,
I was wondering if someone has ever tried storing data in XML files and
then reading back from them, just like as if someone would do from an Acess
database. If yes, are there any advantages disadvantages or speed issues
with that methodology.
I am wondering if it would be a better option to store data into XML
files, and then use it in the application, for quering and displaying info,
since the schema info can also be incorporated with XML.
 
In addition to what Marshal said, I would argue that if you have a great
amount of data to store and process, then I would use a database technology,
and not XML. You can always convert your data to an XML format later, if
you need to interact with other APIs that require XML.

Hope this helps.
 
Back
Top