I'm using the Yahoo! Weather API to retrieve some values. This is the request:
How can I get attributes and values from the following:
<yweather:astronomy sunrise="6:20 am" sunset="4:52 pm"/>
<yweather:condition text="Partly Cloudy" code="29" temp="14" date="Fri, 09 Nov 2012 1:47 am PST"/>
I want to print something like:
Sunrise: 6.20 am
Sunset: 4.52 pm