For example, my string is:
<Here>
<Hey>smth</Hey>
<Hi>else</Hi>
</Here>
I want my document x.xml to have that content. I tried
xmlDoc.InnerXml = thatString;
but it throws an exception.
For example, my string is:
<Here>
<Hey>smth</Hey>
<Hi>else</Hi>
</Here>
I want my document x.xml to have that content. I tried
xmlDoc.InnerXml = thatString;
but it throws an exception.
XmlDocument.LoadXml
http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx
even better - use linq to xml. i prefer the XDocument class of XmlDocument