How to using XML as a simple table storage?

  • Thread starter Thread starter Cylix
  • Start date Start date
C

Cylix

Which object should be using for this purpose?
I just need to using the xml file for read and insert, is it good to
using XmlTextWriter to do so?

Thanks.
 
Cylix said:
Which object should be using for this purpose?
I just need to using the xml file for read and insert, is it good to
using XmlTextWriter to do so?

There are different ways, you can read in the document with
System.Xml.XmlDocument, manipulate that object model in memory and save
it back.
Or you can use XML serialization/deserialization to map your XML to .NET
objects, that way you deserialize your XML to .NET objects with
properties that you can manipulate, then to store you serialize your
objects back to XML.
Or you can read your XML into a DataSet and manipulate that and write
the data set back to XML.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

XML Help 7
XML LINQ - output to XMLtextwriter - the headaches... 2
XML 2
Edit XML File 1
xml woes 1
Convert Access data to XML 1
Problem about xml 1
xslt and .net 1

Back
Top