title: XML and jQuery - Get XML Code once Modified
body: <p>I am trying to accomplish a quite simple task here: modified a XML string using jQuery and get the modified string back.</p>
  
  <p>I think that before, I could use the .html() function to do this, but I think they got rid of the functionnality with parse XML document.</p>
  
  <p>So, here is the code:</p>
  
  <pre><code>var tempXML = "&lt;node1&gt;&lt;node2&gt;Content #1&lt;/node2&gt;&lt;/node1&gt;";
  var parsedXML = $.parseXML(tempXML);
  $(parsedXML).find('node2').text('XXXXXX');
  alert($(parsedXML).find('node2').text());  // That works, it will display XXXXXX
  </code></pre>
  
  <p>Now, as I would suspect, the tempXML var is not modified. </p>
  
  <p>So, how do I get the XML code that should read : "XXXXXX"?</p>
  
  <p>Calling $(parsedXML).text(); only return XXXXXX and .html() is not defined for the object...</p>