1

Openweathermap API - org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: no element found

view story
linux-howto

http://stackoverflow.com – I am trying to parse Openweathermap API using the SAX parser http://api.openweathermap.org/data/2.5/weather?q=London&mode=xml. But I am getting the above error when I set xmlReader.parse(new InputSource(inputStream));. The code for getting xml- URL url = new URL(target_URL); HttpURLConnection conn= (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); conn.connect(); if(HttpURLConnection.HTTP_OK == conn.getResponseCode()){ SAXParserCustom saxParserCustom = new SAXParserCustom(); (HowTos)