title: Modify value inside a node C#
body: <p>s.xml is the file with below contents</p>
  <pre><code>*&lt;scale-tolerance&gt;80
              &lt;description&gt;Tolerance&lt;/description&gt;
  &lt;/scale-tolerance&gt;*
  </code></pre>
  <p>In the above snippet, I intend to modify the value of 80</p>
  <p>I tried the below code</p>
  <pre><code>XmlDocument xmlDocSecurityConfig = new XmlDocument();
  xmlDocSecurityConfig.Load(/*path to the file s.xml*/);
  xmlDocSecurityConfig.SelectSingleNode(&quot;/scale-tolerance&quot;).Innertext = &quot;166&quot;;
  xmlDocSecurityConfig.Save(securityFilePath);
  </code></pre>
  <p>Problem is that the code just not replaces <strong>80</strong> with 166
  Instead replaces <code>**80 &lt;description&gt;Tolerance&lt;/description&gt;**</code> with 166.</p>
  <p>Any suggestions on how to modify only the value 80 with 166 ?</p>
  <p>Thanks in advance</p>