I'm working on an XML file editor in C# that loads multiple xml files into a datagridview for editing. I'm having trouble determining the best way to save changes.
Each XML file has the same schema but different data. I'm using linq to query and load the data from each XML into a datagridview.
I need to edit the values displayed in the datagridview and have the changes saved back to the related XML file.
What would be the best way of doing this? Will I need to read in the filepath to the grid as well and then use something like WriteXML along with the filepatch to determine what file to write to?