Google weather api, issue reading xml

lunmaloi

New Member
I'm using scala to read an xml from google's weather api:\[code\]val response = new URL("http://www.google.com/ig/api?weather=MyCity").openStream()var respXML = response.read()println(respXML)\[/code\]but when i run it the \[code\]println\[/code\] prints a number: \[code\]60\[/code\] instead of the actual xml, i already tried it with the \[code\]curl\[/code\] utility and it worked fine, forgive my ignorance but im new to java's net classes and as far as i know from the tutorials this should work.This is all the relevant code, there isn't much more than this.Thanks.
 
Back
Top