title: Can't Get an XML like string to parse in Jquery
body: <p>I have a string like this:</p>
  
  <pre><code>&lt;note&gt;&lt;url&gt;urlofpage1&lt;/url&gt;&lt;notes&gt;These are the Notes of Page 1&lt;/notes&gt;&lt;/note&gt;
  &lt;note&gt;&lt;url&gt;urlofpage2&lt;/url&gt;&lt;notes&gt;These are the Notes of Page 2&lt;/notes&gt;&lt;/note&gt;
  </code></pre>
  
  <p>I've been trying to parse it so I can get the notes based on the URL:</p>
  
  <p>so</p>
  
  <p>notesofpage1 = getNotes('urlofpage1')</p>
  
  <p>Here's one thing I tried but it doesn't work for some reason.</p>
  
  <pre><code>var xml = '&lt;note&gt;&lt;url&gt;urlofpage1&lt;/url&gt;&lt;notes&gt;These notes should load!&lt;/notes&gt;&lt;/note&gt;&lt;note&gt;&lt;url&gt;urlofpage2&lt;/url&gt;&lt;notes&gt;These are the Notes of Page 2&lt;/notes&gt;&lt;/note&gt;';
  var $xml = $(xml);
  
  var $notes = $xml.find('url')
                   .filter(function() { return $(this).text() == 'urlofpage1' })
                   .closest('notes');
  </code></pre>
  
  <p>Any ideas what i'm doing wrong?</p>