title: Write xmlns element with attributes
body: <p>I'm using XmlWriter to generate an XML file. I am trying to replicate an old XML file and I want to create an entry that will look like;</p>
  
  <pre><code>&lt;Return xmlns="http://address/here" appName="Data Return - Collection Tool" appVer="1.1.0"&gt;
  </code></pre>
  
  <p>My code is as follows:</p>
  
  <pre><code>        writer.WriteStartElement("Return", "http://address/here")
          writer.WriteAttributeString("appName", "Data Return - Collection Tool")
          writer.WriteAttributeString("appVer", "1.1.0")
  </code></pre>
  
  <p>This is generating the attributes in the wrong order ie.</p>
  
  <pre><code>&lt;Return appName="Data Return - Collection Tool" appVer="1.1.0" xmlns="http://address/here"&gt;
  </code></pre>
  
  <p>How can i get these to appear in the order i want.
  Any help please.</p>