title: Set Root Namespace Prefix in an XDocument
body: <p>I currently have:<br></p>
  
  <pre><code>XNamespace xmlns = "XSDName";&lt;br&gt;
  XNamespace xsi = @"http://www.w3.org/2001/XMLSchema-instance";&lt;br&gt;
  XNamespace schemaloc = @"XSDName XSDName.xsd";
  XDocument xdoc = new XDocument(
      new XElement("BaseReport",
      new XAttribute(xsi + "schemaLocation", schemaloc),
      new XAttribute(XNamespace.Xmlns+"ns1", xmlns),
      new XAttribute(XNamespace.Xmlns + "xsi", xsi));
  </code></pre>
  
  <p>This gives me:</p>
  
  <pre><code>BaseReport xsi:schemaLocation="XSDName XSDName .xsd" xmlns:ns1="XSDName" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  </code></pre>
  
  <p>How can I have <code>BaseReport</code> read <code>ns1:BaseReport</code>?</p>