title: C# how to fill xml file with string value
body: <p>For example, my string is:</p>
  
  <pre><code>&lt;Here&gt;
  &lt;Hey&gt;smth&lt;/Hey&gt;
  &lt;Hi&gt;else&lt;/Hi&gt;
  &lt;/Here&gt;
  </code></pre>
  
  <p>I want my document x.xml to have that content. I tried</p>
  
  <pre><code>xmlDoc.InnerXml = thatString;
  </code></pre>
  
  <p>but it throws an exception.</p>