title: XML Nokogiri Request won't stop auto ordering hash keys?
body: <p>I am using ruby 2.0.0 and the <code>Nokogiri</code> gem. I have the following code:</p>
  
  <pre><code>builder = Nokogiri::XML::Builder.new do |xml|
    xml['s'].Envelope('xmlns:s' =&gt; "http://schemas.xmlsoap.org/soap/envelope/") {
      xml['s'].Body {
        xml.GetList('xmlns' =&gt; "http://tempuri.org/") {
          xml.listRequest('i:type' =&gt; "b:NpsListRequest", 'xmlns:a' =&gt; "http://schemas.datacontract.org/2004/07/Services.List", 'xmlns:i' =&gt; "http://www.w3.org/2001/XMLSchema-instance", 'xmlns:b' =&gt; "http://schemas.datacontract.org/2004/07/Services.List.Strategies")
        }
      }
    }
  end
  </code></pre>
  
  <p>The above is incomplete. I need to pass in an ID to actually make the call, however this is what the above returns:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  
  &lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;s:Body&gt;
        &lt;GetList xmlns="http://tempuri.org/"&gt;
           &lt;listRequest xmlns:a="http://schemas.datacontract.org/2004/07/Services.List" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:b="http://schemas.datacontract.org/2004/07/Services.List.Strategies" i:type="b:NpsListRequest"/&gt;
        &lt;/GetList&gt;
     &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>The issue is with the <code>&lt;listRequest xmlns:a</code> code block. In the XML I am creating, I am passing in <code>i:type</code> as the first key, however the response is putting <code>xmlns:a</code> as the first key. Why is that happening?</p>