title: How to create XMLDocument from jQuery.find() result
body: <p>I've loaded two XML documents using jQuery's $.ajax() and serialized each to strings, performed a few string manipulations, combined the two strings together, wrapped them in a  node, located child nodes using $.find(), and now want to convert the $.find() result back to an XMLDocument.</p>
  
  <p>A much abbreviated example:</p>
  
  <pre><code>$.isXMLDoc(xmlDocument1); // returns true
  $.isXMLDoc(xmlDocument2); // returns true
  
  var xml1Str = (new XMLSerializer()).serializeToString(xmlDocument1);
  var xml2Str = (new XMLSerializer()).serializeToString(xmlDocument2);
  
  var xml1And2Str = "&lt;root&gt;" + xml1Str + xml2Str + "&lt;/root&gt;";
  var xml1And2Doc = $.parseXML(xml1And2Str);
  $.isXMLDoc(xml1And2Doc); // returns true
  
  var $oneNode = $(xml1And2Doc).find("oneNodeName");
  </code></pre>
  
  <p>Somewhere inside of xml1And2Doc there is a single xml child-element that looks like <code>&lt;oneNodeName&gt;...&lt;/oneNodeName&gt;</code>.  The last statement finds that for me and then I can successfully use it, and afterwards, I want to convert it into an XMLDocument.  How can I convert <code>$oneNode</code> to an <code>XMLDocument</code>?</p>
  
  <p>There are examples that build up to this, but I believe I'm missing something fundamental here about jQuery or the find() results, which bar me from being able to convert that to an XMLDocument.</p>
  
  <p>References:</p>
  
  <ul>
  <li><a href="http://api.jquery.com/jQuery.parseXML/" rel="nofollow">http://api.jquery.com/jQuery.parseXML/</a></li>
  <li><a href="http://www.erichynds.com/jquery/working-with-xml-jquery-and-javascript/" rel="nofollow">http://www.erichynds.com/jquery/working-with-xml-jquery-and-javascript/</a></li>
  </ul>