Apologies for the very basic question, but I am trying to add a dynamically generated string into a new XmlDocument.
I've tried the below code initially, but wasn't sure if there was a better way.
var summaryXml = new XmlDocument();
summaryXml.InnerXml.Replace("", "<Summary rev=\"" + newRevNumber + "\"></Summary>");
newRevNumber is just a MD5 hash of the current dateTime.
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.
Also, I would have just gone with XDocument, but I'm not familiar enough with LINQ to XML to achieve results.