title: How to add a string as a node to a new XmlDocument?
body: <p>Apologies for the very basic question, but I am trying to add a dynamically generated string into a new XmlDocument.</p>
  
  <p>I've tried the below code initially, but wasn't sure if there was a better way.</p>
  
  <pre><code>var summaryXml = new XmlDocument();
      summaryXml.InnerXml.Replace("", "&lt;Summary rev=\"" + newRevNumber + "\"&gt;&lt;/Summary&gt;");
  </code></pre>
  
  <p>newRevNumber is just a MD5 hash of the current dateTime.</p>
  
  <p>I have a collection of XML nodes that already have data, and I was trying to append them to the end of this new XmlDocument, after I've inserted the string listed above as the first child.</p>
  
  <p>Also, I would have just gone with XDocument, but I'm not familiar enough with LINQ to XML to achieve results.</p>