title: jQuery Closing Open Tags
body: <p>While trying to parse an xml file into table format, jQuery keeps closing my opening <code>&lt;tr&gt;</code> tag. Is there a work around for this?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){
      $.ajax({
              type: "GET",
              url: "sample-data.xml",
              dataType: "xml",
              success: parseXml
          });
      }); 
  
      function parseXml(xml)
      {
        $(xml).find("user").each(function()
        {  
          var id = "#sortable";  
              $(id).append("&lt;tr&gt;");
              $(id).append("&lt;td&gt;" + $(this).find("name").text() + "&lt;/td&gt;");
              $(id).append("&lt;/tr&gt;");
  
        });
      }
  &lt;/script&gt;
  
  &lt;table id="table" class="tablesorter"&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th&gt;test&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody id="sortable"&gt;
  
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>This is how the markup is being outputted:</strong></p>
  
  <pre><code> &lt;tr&gt;&lt;/tr&gt;
   &lt;td&gt;data&lt;/td&gt;
  </code></pre>