title: Update XML nodevalue with C++
body: <p>I have an XML as below</p>
  
  <pre><code>&lt;ROOT&gt;
    &lt;Device&gt;
      &lt;host&gt;localhost&lt;/host&gt;
      &lt;Port&gt;52000&lt;/Port&gt;
    &lt;/Device&gt;
    &lt;DeviceHost&gt;
      &lt;Server&gt;Server.exe&lt;/Server&gt;
      &lt;Port&gt;81&lt;/Port&gt;
    &lt;/DeviceHost&gt;
    &lt;Settings&gt;
  &lt;Flag1&gt;100&lt;/Flag1&gt;
  &lt;Flag2&gt;2000&lt;/Flag2&gt;
    &lt;/Settings&gt;
  &lt;/ROOT&gt;
  </code></pre>
  
  <p>How can I update the <code>Flag1</code> and <code>Flag2</code> to <code>200</code> and <code>4000</code> respectively without changing other values using VC++?</p>
  
  <p>I have two function wrote using api MSXML.</p>
  
  <pre><code> doc.LoadXml(Data);//for loading the xml data
   doc.Save(FilePath);//for saving the xml data
  </code></pre>
  
  <p>But my issue is before saving how can i update two node values</p>