XML ouput
Brought to you by:
iridium
From: Mike K. <mkr...@hs...> - 2003-06-25 20:51:15
|
Hello Folks, I just joined the project. I sent Martin an email the other day telling him that I had extended PHPWeather to output XML. It was fairly quick and easy. I just duplicated pw_text and modified the pretty_prints to be wellformed XML, seperated a few out, and added the XML type header. Now the obstacle is, implementing this in a way that everyone feels is correct and maintainable - if desired. Martin sent me some suggestions already. If anyone has thoughts (querystring param, defaults-dist var, etc...) let me know. Right now I have changed the line in pw_text_en.php to include pw_xml.php(file I created) instead of pw_text.php. An example of the output can be found here: http://www.mikekrisher.com/phpweather/phpweather-2.1.2/index_xml.php?icao=KL UK&language=en In case your wondering, I built this real quick so I could use the data in a Flash movie. -- Mike Krisher http://www.mikekrisher.com mailto:mi...@mi... |