title: Javascript add xml data to a UL list
body: <p>On a query I have some xml data on a response variable.</p>
  
  <p>The data looks like this:</p>
  
  <pre><code>&lt;list type="cat"&gt;
    &lt;instance id="4" name="somename" /&gt;
    &lt;instance id="7" name="someo_there_name" /&gt;
  &lt;/list&gt;
  </code></pre>
  
  <p>I also have a UL prepared where I need a list with id and names appended into the ul</p>
  
  <pre><code>&lt;ul id="thelist"&gt;&lt;/ul&gt;
  </code></pre>
  
  <p>How can I do this?</p>