title: How do I write an XML string to a file?
body: <p>I have a string and its value is:</p>
  
  <pre><code>&lt;ROOT&gt;
      qwerty
      &lt;SampleElement&gt;adsf&lt;/SampleElement&gt; 
      &lt;SampleElement2&gt;The text of the sample element2&lt;/SampleElement2&gt; 
  &lt;/ROOT&gt;
  </code></pre>
  
  <p>How can I write this string to a file using C# 3.0?</p>
  
  <p>Thanks in advance.</p>