title: Xdocument does not print declaration
body: <p>I try to use the domainpeople.com API and to do I need to use XML.</p>
  
  <p>Currently I have an error saying "apiProtocol is not found" I guess then that my Xml document is malformed.</p>
  
  <p>The Current xml sent is : </p>
  
  <pre><code>&lt;apiProtocol version="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNameSpaceSchemaLocation="checkrequest.xsd"&gt;
    &lt;checkRequest user="ifuzion" password="fish4gold121" reference="123456789"&gt;
      &lt;domain name="google.com" /&gt; 
    &lt;/checkRequest&gt;
  &lt;/apiProtocol&gt;
  </code></pre>
  
  <p>Apparently the <code>&lt;?xml?&gt;</code> part does not print out.</p>
  
  <p>My code is basically something similar to : </p>
  
  <pre><code>XDocument xDocument = new XDocument(
  new XDeclaration("1.0", "UTF-8", "yes"),
  new XElement("Books"));
  </code></pre>
  
  <p>(I stripped my code for a question of simplicity but the structure is exactly similar).</p>
  
  <p>Is there any reason why XDocument doesn't print out the <code>&lt;?xml?&gt;</code> part ? It seems that with XmlDocument it works but not with XDocument ... any hints ?</p>