title: Unwanted inline namespace format generated on XML Attribute
body: <p>The following LINQ to XML C# code creates one <code>XElement</code> having one <code>XAttribute</code>:</p>
  
  <pre><code>XElement xWorksheet = 
      new XElement("Worksheet", new XAttribute(XName.Get("Name", "ss"), "Sheet1"));
  </code></pre>
  
  <p>It generates an inline namespace producing the following XML element having p1:</p>
  
  <pre><code>&lt;Worksheet p1:Name="Sheet1" xmlns:p1="ss" /&gt;
  </code></pre>
  
  <p>However what I really want is this:</p>
  
  <pre><code>&lt;Worksheet ss:Name="Sheet1" /&gt;
  </code></pre>
  
  <p><strong>How can I get the second form of the element?</strong> </p>
  
  <p><em>Note: If you recognize the XML structure, I'm filling out an Excel spreadsheet but this is anecdotal to the question.</em> </p>
  
  <p>Ultimately I'm creating the Worksheet element in the following Excel document:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;?mso-application progid="Excel.Sheet"?&gt;
  &lt;Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
   xmlns:o="urn:schemas-microsoft-com:office:office"
   xmlns:x="urn:schemas-microsoft-com:office:excel"
   xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
   xmlns:html="http://www.w3.org/TR/REC-html40"&gt;
  
    &lt;Worksheet ss:Name="Sheet1"&gt;
      &lt;Table&gt;
        &lt;Row&gt;
          &lt;Cell&gt;
            &lt;Data ss:Type="String"&gt;number &lt;/Data&gt;
          &lt;/Cell&gt;
          &lt;Cell&gt;
            &lt;Data ss:Type="String"&gt;name &lt;/Data&gt;
          &lt;/Cell&gt;
        &lt;/Row&gt;
      &lt;/Table&gt;
    &lt;/Worksheet&gt;
  
  &lt;/Workbook&gt;
  </code></pre>