title: Unwanted xmlns attribute generated for nodes
body: <p>I would like to generate the following XML from VBA.</p>
  <pre><code>&lt;TokenRequest xmlns:common=&quot;http://whatever/common&quot; xmlns=&quot;http://whatever/api&quot;&gt;
      &lt;common:header&gt;
          &lt;common:requestId&gt;12345&lt;/common:requestId&gt;
      &lt;/common:header&gt;
      &lt;software&gt;
          &lt;requestId&gt;ABCDE&lt;/requestId&gt;
      &lt;/software&gt;
  &lt;/TokenRequest&gt;
  </code></pre>
  <p>The issue with my below code is that it generates the xmlns:common attribute also in the common:header node.</p>
  <p>So instead of this:</p>
  <pre><code>&lt;common:header&gt;
  </code></pre>
  <p>I get this:</p>
  <pre><code>&lt;common:header xmlns:common=&quot;http://whatever/api&quot;&gt;
  </code></pre>
  <p>And this is the piece of code I'm using:</p>
  <pre><code>ns1 = &quot;http://whatever/api&quot;
  ns2 = &quot;http://whatever/common&quot;
  
  Set xRequest = New DOMDocument
      
  Set xeTokenRequest = xRequest.createNode(NODE_ELEMENT, &quot;TokenRequest&quot;, ns1)
  xRequest.appendChild xeTokenRequest
  
  Set xeAttrTmp = xRequest.createAttribute(&quot;xmlns&quot;)
  xeAttrTmp.nodeValue = ns1
  xeTokenRequest.Attributes.setNamedItem xeAttrTmp
  
  Set xeAttrTmp = xRequest.createAttribute(&quot;xmlns:common&quot;)
  xeAttrTmp.nodeValue = ns2
  xeTokenRequest.Attributes.setNamedItem xeAttrTmp
  
  'Create elements
  Set xeHeader = xRequest.createNode(NODE_ELEMENT, &quot;common:header&quot;, ns1)
  xeTokenRequest.appendChild xeHeader
  
  Set xeTmp = xRequest.createNode(NODE_ELEMENT, &quot;common:requestId&quot;, ns1)
  xeTmp.nodeTypedValue = &quot;12345&quot;
  xeHeader.appendChild xeTmp
  
  Set xeSoftware = xRequest.createNode(NODE_ELEMENT, &quot;software&quot;, ns1)
  xeTokenRequest.appendChild xeSoftware
  
  Set xeTmp = xRequest.createNode(NODE_ELEMENT, &quot;requestId&quot;, ns1)
  xeTmp.nodeTypedValue = &quot;ABCDE&quot;
  xeSoftware.appendChild xeTmp
  </code></pre>
  <p>The full XML generated using above code is the following:</p>
  <pre><code>&lt;TokenRequest xmlns:common=&quot;http://whatever/common&quot; xmlns=&quot;http://whatever/api&quot;&gt;
      &lt;common:header xmlns:common=&quot;http://whatever/api&quot;&gt;
          &lt;common:requestId&gt;12345&lt;/common:requestId&gt;
      &lt;/common:header&gt;
      &lt;software&gt;
          &lt;requestId&gt;ABCDE&lt;/requestId&gt;
      &lt;/software&gt;
  &lt;/TokenRequest&gt;
  </code></pre>
  <p>How can I get rid of that attribute on the node level?</p>