title: Getting the value of an xml attribute with Applescript
body: <p>I want to parse the Yahoo! Weather API and I want to save these element attributes to variables for later use:</p>
  
  <pre><code>&lt;yweather:location city="Zebulon" region="NC"   country="US"/&gt;
  &lt;yweather:astronomy sunrise="6:52 am"   sunset="7:39 pm"/&gt;
  &lt;yweather:forecast day="Wed" date="7 Apr 2010" low="61" high="96" text="Partly Cloudy" code="29" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>How can I do this with applescript?</p>
  
  <p>So, </p>
  
  <pre><code>set locationCity to [city]
  set locationRegion to [reagion]
  set locationCountry to [country]
  
  set astronomySunrise to [sunriseTime]
  set astronomySunset to [sunsetTime]
  </code></pre>
  
  <p>I want the forcasts to be in an array of some sort to organize them by day/date</p>