If you ever sit down to try and parse Google calendar XML data in Actionscript (specifically AS3), you’ll find that there is a lot of misinformation on the web, including many poor, broken examples of code. I’d like to try and demystify some of the problems behind parsing Google calendar XML by showing how it is done the right way.
I’m restructuring my blog to only focus on these languages and environments: Apache, PHP, MySQL, Javascript (usually via jQuery), XML, Actionscript, CSS, and HTML. Very rarely have I had to extend my reach out into other languages to accomplish the creation of a quality web page or web application.
I’ve looked at parsing weather data with PHP before, but I’ve found that using Yahoo’s weather service it more stable and flexible. Luckily PHP has some excellent built in functions to parse complex XML.
It is neat to display the current temperature on your website. I’d like to show you the easiest way to display the temperature on your site using XML from the National Weather Service (NOAA) and PHP.