title: Is it possible to create an XmlElement with two xml namespaces?
body: <p>I have to generate XML like the below:</p>
  
  <pre><code>&lt;foo:document xmlns="http://www.example.com/xmlns" xmlns:foo="http://www.example.com/xmlns/foo-version1"&gt;
      &lt;foo:bar foo:baz="true" /&gt;
  &lt;/foo:document&gt;
  </code></pre>
  
  <p>How can I generate this document with <code>System.Xml.XmlDocument</code> in c#?</p>