title: Parse XML Tag Element in Javascript
body: <p>I have an xml feed, which i'm attempting to extract two values from.  I'll paste the basic xml feed below.</p>
  
  <pre><code>&lt;aws:weather&gt;
       &lt;aws:current-condition icon="http://deskwx.weatherbug.com/images/Forecast/icons/cond034.gif"&gt;Mostly Cloudy&lt;/aws:current-condition&gt;
  &lt;/aws:weather&gt;
  </code></pre>
  
  <p>To parse this feed, I have the following in Javascript:</p>
  
  <pre><code>$(document).ready(function(){
      $.get('http://xmlfeed-with-private-api-access.xml', function(d){
  
      $(d).find('weather').each(function(){
  
      var $weatherinfo = $(this); 
      var winfo = $weatherinfo.find('current-condition').text();
  
      var winformation = winformation += '&lt;span&gt;' + winfo + '&lt;/span&gt;' ;
      $('#sydinfo').append($(winformation));
  
      $('.loadingPic').fadeOut(1400);
      });
      });
  });
  </code></pre>
  
  <p>Which works just fine to get the "Mostly Cloudy" text.  But now I'm having trouble forming a statement to display the icon url - which is housed within the tag itself (http://deskwx.weatherbug.com/images/Forecast/icons/cond034.gif)</p>
  
  <p>Would anyone please be able to help append a statement to read and display this value within the above js?</p>