How can I use JavaScript/Ajax to parse values from the following XML snippet?
<yweather:astronomy sunrise="6:34 am" sunset="8:38 pm"/>
I've been attempting to retrieve the sunrise attribute with no success using this code:
var response = transport.responseXML.getElementsByTagName("channel");
sunrise = response[0].getElementsByTagName("yweather:astronomy").item(0).Attributes["sunrise"].Value;
Unfortunately, my code is not working as expected. Any help would be greatly appreciated! Thanks.