title: Find an XML Node Using jQuery And Use Its Values
body: <p>I'm using a XML file like this:</p>
  
  <pre><code>&lt;Test&gt;
      &lt;Unit&gt;
          &lt;Title&gt;Test 1&lt;/Title&gt;
          &lt;Date&gt;01/07/2011&lt;/Date&gt;
          &lt;Content format="html"&gt;&lt;![CDATA[Here goes some content]]&gt;&lt;/Content&gt;
      &lt;/Unit&gt;
  
      &lt;Unit&gt;
          &lt;Title&gt;Testing New XML&lt;/Title&gt;
          &lt;Date&gt;27/06/2011&lt;/Date&gt;
          &lt;Content format="html"&gt;&lt;![CDATA[Here goes some content]]&gt;&lt;/Content&gt;
      &lt;/Unit&gt;
      &lt;!-- A lot of stuff like this --&gt;
  &lt;/Test&gt;
  </code></pre>
  
  <p>I want to use jQuery to search on the XML document for a <code>&lt;Title&gt;</code> given and get its entire <code>&lt;Unit&gt;</code>, so I can work with the values like this:</p>
  
  <pre><code>function append(title, date, content) {
      $("#Unit").append("&lt;h1 id='title'&gt;&lt;b&gt;" + title + "&lt;/b&gt;&lt;/h1&gt;&lt;h2 id='date'&gt;" + date + "&lt;/h2&gt;&lt;p&gt;" + content + "&lt;/p&gt;");
  }
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p><em>PS: I've been using <a href="http://think2loud.com/224-reading-xml-with-jquery/" rel="nofollow">this</a> as the base of my XML reading</em></p>