How to find a node in an XML file and change it or delete it?

  • Thread starter Thread starter David Hearn
  • Start date Start date
D

David Hearn

I have an XML file that is being used as a small database. I am binding it
to a datagrid control for display and editing purposes. When the user makes
a change in a quantity or want to delete the record all together, how do I
accomplish this?

Thanks in advance!
 
David
You can load the Xml file into a XmlDocument and use the SelectNodes/SelectSingleNode methods of the XmlDocument to alter the node or remove it etc. There are other issues you have to deal with such as writing the document back to the file and prevent overwriting by another user

Tu-Thac
www.ongtech.co

----- David Hearn wrote: ----

I have an XML file that is being used as a small database. I am binding i
to a datagrid control for display and editing purposes. When the user make
a change in a quantity or want to delete the record all together, how do
accomplish this

Thanks in advance
 
Back
Top