title: Replace a string in an XML string
body: <p>I have a string that looks like this:</p>
  
  <pre><code>newNodeXML = "&lt;item id="qDf73w8emTg" parent_id="weLPzE243de" type="suite"&gt;
                   &lt;content&gt;
                      &lt;name&gt;Three&lt;/name&gt;
                   &lt;/content&gt;
                &lt;/item&gt;"
  </code></pre>
  
  <p><strong>In my [WebMethod]</strong>, I am trying to replace the parent_ID (randomly generated during run-time) like this:</p>
  
  <pre><code>Regex myRegex = new Regex(@""" parent_id=""(.*?)"" type=""");
  newNodeXML = myRegex.Replace(newNodeXML, "d43df2qT45");
  </code></pre>
  
  <p><em>Please NOTE that for example/demo sake I have used 'd43df2qT45' in the second line above. I will actually be generating that randomly too.</em></p>
  
  <p><strong>My problem</strong> here is that the result of this comes out to be.
  I <strong>do not want</strong> this:</p>
  
  <pre><code>&lt;item id="qDf73w8emTgd43df2qT45suite"&gt;
     &lt;content&gt;
        &lt;name&gt;Three&lt;/name&gt;
     &lt;/content&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>Instead, this is what I <strong>want</strong> it to be:</p>
  
  <pre><code>&lt;item id="qDf73w8emTg" parent_ID="d43df2qT45" type="suite"&gt;
     &lt;content&gt;
        &lt;name&gt;Three&lt;/name&gt;
     &lt;/content&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>P.S. I have tried some examples/google searches and all I could find were examples that got me this far.</p>