title: How to print <?xml version="1.0"?> using XDocument
body: <p>Is there any way to have an XDocument print the xml version when using the ToString method? Have it output something like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!DOCTYPE ELMResponse [
  ]&gt;
  &lt;Response&gt;
  &lt;Error&gt; ...</code></pre>
  
  <p>I have the following:</p>
  
  <pre><code>var xdoc = new XDocument(new XDocumentType("Response", null, null, "\n"), ...</code></pre>
  
  <p>which will print this which is fine, but it is missing the "&lt;?xml version" as stated above.</p>
  
  <pre><code>&lt;!DOCTYPE ELMResponse [
  ]&gt;
  &lt;Response&gt;
  &lt;Error&gt; ...</code></pre>
  
  <p>I know that you can do this by outputting it manually my self. Just wanted to know if it was possible by using XDocument.</p>