Open main menu

CDOT Wiki β

Changes

Teams Winter 2011/team2/project

129 bytes added, 17:47, 16 April 2011
no edit summary
</syntaxhighlight>
2. Provider's implementation. The provider's implementation class WeatherImplementation.java uses a webservice from http://www.worldweatheronline.com/ get weather information. You will need to subscribe to their website to get an apikey to request and get weather information. Worldweatheronline.com provides data in both json and xml. We will use xml format in this project.
Thanks to http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html for the tips on parsing xml.
<syntaxhighlight lang="java">
1
edit