title: Simple Jquery and XML . Ajax
body: <p>I've scoured the internet for hours and only can find complex Ajax. I need to complete this test in an hour for a test I have at school and cant figure this out. Heres my XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;cookies&gt;
    &lt;cookie&gt;
      &lt;name&gt;cookie name #1&lt;/name&gt;
      &lt;type&gt;cookie type #1&lt;/type&gt;
    &lt;/cookie&gt;
    &lt;cookie&gt;
      &lt;name&gt;cookie name #2&lt;/name&gt;
      &lt;type&gt;cookie type #2&lt;/type&gt;
    &lt;/cookie&gt;
    &lt;cookie&gt;
      &lt;name&gt;cookie name #3&lt;/name&gt;
      &lt;type&gt;cookie type #3&lt;/type&gt;
    &lt;/cookie&gt;
  &lt;/cookies&gt;
  </code></pre>
  
  <p>All I need to do is get the cookie "name" and and "type" and put them in a div like this</p>
  
  <pre><code>&lt;div id="something"&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;
  </code></pre>
  
  <p>So what I need is the name in the first p and the type in the second p. I also need an if, or each statement so I can account for all the cookies. I know this is simple but it will help me pass the test and get into AJAX and help my understanding of it much better too!!</p>