title: How to use XML namespace prefixes without xmlns="..." everywhere? (.NET)
body: <p>The subject is probably too short to explain it...</p>
  
  <p>I'm writing out XML files with no namespace stuff at all, for some application. That part I cannot change. But now I'm going to extend those files with my own application-defined element names, and I'd like to put them in a different namespace. For this, the result should look like this:</p>
  
  <pre><code>&lt;doc xmlns:x="urn:my-app-uri"&gt;
    &lt;a&gt;existing element name&lt;/a&gt;
    &lt;x:addon&gt;my additional element name&lt;/x:addon&gt;
  &lt;/doc&gt;
  </code></pre>
  
  <p>I've used an XmlNamespaceManager and added my URI with the prefix "x" to it. I've also passed it to each CreateElement for my additional element names. But the nearest I can get is this:</p>
  
  <pre><code>&lt;doc&gt;
    &lt;a&gt;existing element name&lt;/a&gt;
    &lt;addon xmlns="urn:my-app-uri"&gt;my additional element name&lt;/addon&gt;
  &lt;/doc&gt;
  </code></pre>
  
  <p>Or maybe also</p>
  
  <pre><code>  &lt;x:addon xmlns:x="urn:my-app-uri"&gt;my additional element name&lt;/x:addon&gt;
  </code></pre>
  
  <p>So the point is that my URI is written to every single of my additional elements, and no common prefix is written to the document element where I'd like to have it.</p>
  
  <p>How can I get the above XML result with .NET?</p>