Answers for "update a xml document if its not empty on c#"

0

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");
Posted by: Guest on December-22-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language