Xml Component

  • Thread starter Thread starter Ron Vecchi
  • Start date Start date
R

Ron Vecchi

Hi all,


Is there any examples or tutorials out there on making a component that
manages an Xml docuemnts. As far as SELECTING DELETING UPDATING and
INSERTING data to and from. Similar to querying a database through sql.

I am looking to create a component to wrap up some of the coding needed to
perform these queries.
Any one try this or know of some examples?


Thanks,
Ron Vecchi
 
What about using a DataSet?

DataSet ds = new DataSet();
ds.ReadXml("xmlfile");
update, select, delete, etc from dataset...
ds.WriteXml("xmlfile");

Granted, if you have more than one process running, you'll have some
problems in terms of other updates to the xml file. But if you are looking
for concurrent access, a database would be far preferable anyway.
 
I was continplating creating a shopping cart program for web use and I don't
want to rely on the shared hosting account having a database. I would
rather do it in XML. But yes a DataSet does seem like a good idea. I will
need to implement a Mutex around Inserts, Updates, and Deletes though.

My question is does the WriteXml() method rewrite the whole document over
the old one or does it just make changes in the document where changes in
the dataset are made?


Thanks
Ron Vecchi
 
Back
Top