Example:
<xml>
<stockgroup name="Laptops" action="Create">
<name.list>
<name>Old Value</name>
</name.list>
<parent />
<isaddable>Yes</isaddable>
</stockgroup>
</xml>
Let's replace "Old Value" with "New Value":
string xmlFile = "test.xml";
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.Load(xmlFile);
xmlDoc.SelectSingleNode("xml/stockgroup/name.list/name").InnerText = "New Value";
xmlDoc.Save(xmlFile);