title: Javascript / jQuery - Parse returned 'data' as HTML for further selecting?
body: <p>a webservice returns some data to me. The data is actually just raw HTML (so no XML header, or  tags around it, but just a piece of html). </p>
  
  <pre><code>&lt;div class="Workorders"&gt;
      &lt;div id="woo_9142" class="Workorder"&gt;
          &lt;span class="Workorder"&gt;S1005&lt;/span&gt;
          &lt;span class="Pn"&gt;30-2&lt;/span&gt;
          &lt;span class="Description"&gt;Cooling Fan&lt;/span&gt;
          &lt;span class="Shortages"&gt;3616-1 (SV)&lt;/span&gt;
          &lt;span class="Company"&gt;xxx&lt;/span&gt;
      &lt;/div&gt;
      &lt;div id="woo_9143" class="Workorder"&gt;
          &lt;span class="Workorder"&gt;S1006&lt;/span&gt;
          &lt;span class="Pn"&gt;30-2&lt;/span&gt;
          &lt;span class="Description"&gt;Cooling Fan&lt;/span&gt;
          &lt;span class="Shortages"&gt;3616-1 (SV)&lt;/span&gt;
          &lt;span class="Company"&gt;xxx&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>If this were XML like so:</strong></p>
  
  <pre><code>&lt;workorders&gt;
      &lt;workorder id="woo_9142"&gt;
          &lt;partnumber&gt;30-2&lt;/partnumber&gt;
      &lt;/workorder&gt;
  &lt;/workorders&gt;
  </code></pre>
  
  <p><strong>I could go like this in jQuery:</strong></p>
  
  <pre><code>$('/workorders/workorder', data).each(function() {
      //This would give every partnumber $('partnumber', this).text();
  });
  </code></pre>
  
  <p><strong>How can I parse the returned HTML (like described at the beginning)?</strong></p>
  
  <pre><code>myNamespace.onSuccess = function(request) {
      //request contains the raw html string returned from the server
  
      //How can I make this possible:
      $(request).find('div.Workorders div.Workorder').each(function() {
         //Do something with the Workorder DIV in 'this'
      });
  }
  </code></pre>