Today, we will discuss about "Set Value for SingleXMLNode usng C#.Net"
Copy and Paste the Following Code
Copy and Paste the Following Code
 private void ChangeValueofXMLNodeValue(string XMLPath,string SelectedSingleTag)
        {
            XmlDocument doc = new XmlDocument();
            doc.Load(XMLPath);
            XmlNode root = doc.DocumentElement;
            XmlNode myNode = root.SelectSingleNode(SelectedSingleTag);
            myNode.InnerText  = textBox1.Text ;
            doc.Save(XMLPath);
        }