title: Create root XML node with more than 1 namespace
body: <p>I am working with Backbone.js with Restful services. Have to post XML. 
  I want to add more than 1 namespace</p>
  
  <p>Current JS code is like,</p>
  
  <pre><code>var nsp = "xmlns='http://services.xyz/xmlschema/common'";
  var nsp2 = "xmlns:ns2='http://services.xyz/xmlschema/subscription'";
  
  var doc = document.implementation.createDocument(nsp, "ns2:subscription", "");
  </code></pre>
  
  <p>But i expect XML root node is like,</p>
  
  <pre><code>&lt;ns2:subscription xmlns='http://services.xyz/xmlschema/common' 
  xmlns:ns2='http://services.xyz/xmlschema/subscription'&gt;..&lt;/ns2:subscription&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>