title: update xml file with batch
body: <ol>
  <li>I have been searching for an hour with no luck</li>
  <li>My boss wants it to be a batch file</li>
  </ol>
  
  <p>I have a xml file that contains the following.</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
      &lt;profiledoc default="*** Last Run ***"&gt;
      &lt;profile name="*** Last Run ***" &gt;
      &lt;workingdir&gt;c:\proj&lt;/workingdir&gt;
      &lt;somestuff&gt;none&lt;/somestuff&gt;
      &lt;smpnumprocs&gt;4&lt;/smpnumprocs&gt;
      &lt;otherstuff&gt;&lt;/otherstuff&gt;
      &lt;llama&gt;FLUFFY&lt;/llama&gt;
      &lt;language&gt;en-us&lt;/language&gt;
      &lt;customexe&gt;&lt;/customexe&gt;
      &lt;addlparams&gt;&lt;/addlparams&gt;
      &lt;graphicsdevice&gt;win32&lt;/graphicsdevice&gt;
      &lt;/profile&gt;
      &lt;/profiledoc&gt;
  </code></pre>
  
  <p>We want to set <code>&lt;smpnumprocs&gt;4&lt;/smpnumprocs&gt;</code> (which is the number of processors used) to 2
  therefore, the line should look like this <code>&lt;smpnumprocs&gt;2&lt;/smpnumprocs&gt;</code></p>
  
  <p>I figured out how to get to the value I want with this</p>
  
  <pre><code>FOR /f "tokens=3 delims=&gt;&lt;  " %%a IN ('TYPE %LOCAL_FILE% ^| FIND "&lt;smpnumprocs&gt;"') DO SET NUM_PROCS=%%a
  </code></pre>
  
  <p>Now how do I change the value?</p>