Click here to Skip to main content
16,008,490 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an xml file which contains name , age , location ... and my program contains datagridview which reads the file so I want to select a specific item and edit it in the file.

what should I do ??

What I have tried:

I have searched a lot but nothing is working
Posted
Updated 20-Apr-18 17:41pm
v2
Comments
PIEBALDconsult 12-Apr-18 19:47pm    
You have to rewrite the whole file.
F-ES Sitecore 13-Apr-18 5:52am    
Load the xml into an XmlDocument object, find the element you want to change, change it, then save the xml again.
Member 13480832 20-Apr-18 23:39pm    
Thank you so much :D

1 solution

Download MS 101 LINQ Samples. It gives examples of virtually anything you might want to do with XML. Good luck with that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900