I'm using SAX to pull information from the google weather API and I'm having issues with the "conditions".
Specifically I'm using this code:
public void startElement (String uri, String name, String qName, Attributes atts) {
if (qName.compareTo("condition") == 0) {
String cCond = atts.getValue(0);
System.out.println("Current Conditions: " + cCond);
currentConditions.add(cCond);
}
To pull XML from something like this:
http://www.google.com/ig/api?weather=Boston+MA
Meanwhile I'm trying to get conditions only for the current day, and not for any days in the future.
Is there some check I could put into the xml to only pull data for the present day based on what's in the XML file?
Thanks!