update a xml document if its not empty on c# code example
Example: update a xml document if its not empty on c#
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(@"C:\Well.xml");
XmlNode node = xmlDoc.SelectSingleNode("/gpx/waypoints/waypoint[@a='2']/name");
node.InnerText = "Something";
xmlDoc.Save(@"C:\Well.xml");