title: Jquery .wrapAll problem
body: <p>I'm parsing an xml file and I want to wrap children divs into a div called "new":</p>
  
  <p>I have something similar to below:</p>
  
  <pre><code>function parseXml(xml)
  {
   $(xml).find("hotel").each(function()
   {
   $('&lt;div class="wrapme"&gt;&lt;/div&gt;').html($(this).find("hotel_name").text()).appendTo('#foo');
   });
  }
  $('.wrapme').wrapAll('&lt;div class="group" /&gt;');
  
  // output: not working, it doesn't enclose my wrapme divs into Group
  </code></pre>
  
  <p>Anyone knows the reason ?</p>
  
  <p>Appreciate your help guys!! </p>
  
  <p>The problem is that .wrapAll doesn't seem to work in this particular cases</p>