title: Convert String to XML Document in JavaScript
body: <p>Saw this example on the jQuery examples page for Ajax:  </p>
  
  <pre><code>var xmlDocument = [create xml document];
  $.ajax({
          url: "page.php",
          processData: false,
          data: xmlDocument,
          success: someFunction
      });
  </code></pre>
  
  <p>How do I take a string like:</p>
  
  <pre><code>var t = '&lt;foo&gt;&lt;bar&gt;something&lt;/bar&gt;&lt;/foo&gt;';  
  </code></pre>
  
  <p>And convert that to a XML DOM object? cross-browser?  </p>
  
  <p><strong>UPDATE</strong>:
  Please see comments to karim79's answer.</p>