Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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");
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #update #xml #document #empty
ADD COMMENT
Topic
Name
4+1 =