title: Can not get XML attribute value using javascript and jquery
body: <p><strong>XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Publications LatestPubDate="2012-12-20" Version="0"&gt;
  &lt;PubYear Year="2012"&gt;
  &lt;PubMonth Month="12"&gt;
  &lt;Publication Name="Headline" PubDay="15" ThumbnailWidth="300" ThumbnailHeight="400" ThumbnailPath="FlippingBook/Dev/Frontend/OutPutFolder/Headline/2012/12/15/0/0/A/Content/1/Pg001.jpg" Version="0" Visible="true"/&gt;
  &lt;Publication Name="Headline" PubDay="16" ThumbnailWidth="300" ThumbnailHeight="400" ThumbnailPath="FlippingBook/Dev/Frontend/OutPutFolder/Headline/2012/12/16/0/0/A/Content/1/Pg001.jpg" Version="0" Visible="true"/&gt;
  &lt;Publication Name="Headline" PubDay="17" ThumbnailWidth="300" ThumbnailHeight="400" ThumbnailPath="FlippingBook/Dev/Frontend/OutPutFolder/Headline/2012/12/17/0/0/A/Content/1/Pg001.jpg" Version="0" Visible="true"/&gt;
  &lt;Publication Name="Headline" PubDay="18" ThumbnailWidth="300" ThumbnailHeight="400" ThumbnailPath="FlippingBook/Dev/Frontend/OutPutFolder/Headline/2012/12/18/0/0/A/Content/1/Pg001.jpg" Version="0" Visible="true"/&gt;
  &lt;Publication Name="Headline" PubDay="19" ThumbnailWidth="300" ThumbnailHeight="400" ThumbnailPath="FlippingBook/Dev/Frontend/OutPutFolder/Headline/2012/12/19/0/0/A/Content/1/Pg001.jpg" Version="0" Visible="true"/&gt;
  &lt;Publication Name="Headline" PubDay="20" ThumbnailWidth="300" ThumbnailHeight="400" ThumbnailPath="FlippingBook/Dev/Frontend/OutPutFolder/Headline/2012/12/20/0/0/A/Content/1/Pg001.jpg" Version="0" Visible="true"/&gt;
  &lt;/PubMonth&gt;
  &lt;/PubYear&gt;
  &lt;/Publications&gt;
  </code></pre>
  
  <p><strong>js:</strong></p>
  
  <pre><code>function get_past_issues(year,month) {  
      $.ajax({ url: './demo/Headline/PublicationList.xml', 
           async: false,
           success: function(xml) {
              //$("#dialog").append("&lt;div class = 'issues'&gt;");    
              $(xml).find("Publications").find($("PubYear[Year='" + year + "']")).each(function() {
                  //alert ($(this).attr ('Year'));
                      $(xml).find("Publications").find($("PubMonth[Month='" + month + "']")).find("Publication").each(function() {
                          alert ($(this).attr ('ThumbnailPath'));
                      });
              });
              //$("#dialog").append("&lt;/div&gt;");    
          }
      });
  </code></pre>
  
  <p>For instance I have provided the function year is 2012 and month is 12, however, the fliter $("PubYear[Year='" + year + "']") seems do not work with the find function? How to fix the problem ? thanks</p>