title: How do I append these two XMLs together?
body: <p>I'm trying to append xmlTwo inside the xmlOne yellow node, but I'm getting an error. What am I doing wrong?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var xmlOne = 
      $.parseXML(
        "&lt;xml xmlns=\"mynamespace\"&gt;\
          &lt;red&gt;\
            &lt;orange&gt;\
              &lt;yellow&gt;\
              &lt;/yellow&gt;\
            &lt;/orange&gt;\
          &lt;/red&gt;\
        &lt;/xml&gt;"
      );
  
  var xmlTwo =
      $.parseXML(
        "&lt;green&gt;\
          &lt;blue&gt;I'm in blue!&lt;/blue&gt;\
        &lt;/green&gt;"
      );
  
  var xmlThree = xmlOne.getElementsByTagName("yellow")[0].appendChild(xmlTwo);
  
  console.log(xmlThree);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>