title: Windows batch file - replace a string in an XML file
body: <p>I have the following XML file:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
      &lt;configuration&gt;
        &lt;startup&gt;
          &lt;supportedRuntime version="v2.0.50727"/&gt;
        &lt;/startup&gt;
        &lt;appSettings&gt;
          &lt;add key="Name1" value="Value1"/&gt;
          &lt;add key="Name2" value="Value2"/&gt;
          &lt;add key="Name3" value="Value3"/&gt;
        &lt;/appSettings&gt;
        &lt;runtime&gt;
          &lt;legacyUnhandledExceptionPolicy enabled="true"/&gt;
        &lt;/runtime&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>I need to replace "Value2" to "ServerName" using Windows Batch file programming. </p>
  
  <p>Could anybody help one as I am new to Windows Batch programming?</p>