title: Add xmlns attribute to root element
body: <p>I have C# Program to Generate RDL File For whitch Show report in Reporting services.
  I use Linq to Xml to generate Xml.</p>
  
  <p>When I try to add <strong>xmlns</strong> XAttribute to Report Element, I encounter several problems.</p>
  
  <p>I test following methods:</p>
  
  <p><strong>first:</strong></p>
  
  <pre><code>        XDocument d = new XDocument(
             new XDeclaration("1.0", "utf-8", "yes"),
             new XElement("Report",
                 new XAttribute(XNamespace.Xmlns + "rd", "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"),
                 new XAttribute(XNamespace.Xmlns + "cl", "http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition"),
                 new XAttribute("xmlns", "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"),
                     new XElement("DataSources", ""),
                     new XElement("DataSets", ""),
                     new XElement("ReportSections",
  </code></pre>
  
  <p>this is a part of my code witch show how generate xml:</p>
  
  <p><strong>second:</strong></p>
  
  <pre><code>XNamespace reportDef = "http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition";
          XDocument d = new XDocument(
             new XDeclaration("1.0", "utf-8", "yes"),
             new XElement(reportDef + "Report",
                 new XAttribute(XNamespace.Xmlns + "rd", "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"),
                 new XAttribute(XNamespace.Xmlns + "cl", "http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition"),
                     new XElement("DataSources", ""),
                     new XElement("DataSets", ""),
                     new XElement("ReportSections",...
  </code></pre>
  
  <p>The first method returns an Error and second method adds attribute <strong>xmlns</strong> to all child node.</p>
  
  <p>I want this format:</p>
  
  <pre><code>&lt;Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition"&gt;
  </code></pre>