title: LINQ to XML generates \r\n between tags?
body: <p>I am generating a XElement having this structure:</p>
  
  <pre><code>&lt;TestNames&gt;\r\n &lt;Test&gt;YA&lt;/Test&gt;\r\n &lt;Test&gt;YO&lt;/Test&gt;\r\n &lt;/TestNames&gt;
  </code></pre>
  
  <p>How do I get rid of the whitespaces and \r\n in a non-hack way :)</p>
  
  <p><strong>Update</strong>:</p>
  
  <pre><code>XElement testsXmlDocument= new XElement("TestNames");           
  
  foreach (string test in selectedTests)         
      testsXmlDocument.Add(new XElement("Test",test)); 
  
  return testsXmlDocument.ToString();
  </code></pre>