title: Extract single element from XMLHttpRequest
body: <p>I am actually making a Sidebar Gadget, (which is AJAX-based) and I am looking for a way to extract a single element from an AJAX Request.</p>
  
  <p>The only way I found yet was to do something like that:</p>
  
  <pre><code>var temp = document.createElement("div");
  temp.innerHTML = HttpRequest.innerText;
  document.body.appendChild(temp);
  temp.innerHTML = document.getElementByID("WantedElement").innerText;
  </code></pre>
  
  <p>But it is pretty ugly, I would like to extract WantedElement directly from the request without adding it to the actual document...</p>
  
  <p>Thank you!</p>