I am begginer to android development. I am using SAX parser for xml parser. I couldn't find the reason for this exeption. I tried getAsset() method. but it didn't worked.
xmlParser code :::
public class XMLParser {
public static Country parseCountry(InputStream is) {
try {
Country country= new Country(null, null, null);
XMLReader xmlReader = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
XMLHandler xmlHandler = new XMLHandler();
xmlReader.setContentHandler(xmlHandler);
xmlReader.parse(new InputSource(new FileInputStream(http://64.85.165.53/dharatest/xmlarray.xml));
country = xmlHandler.getParsedCountryData();
} catch(ParserConfigurationException pce) {
Log.e("SAX XML", "sax parse error", pce);
} catch(SAXException se) {
Log.e("SAX XML", "sax error", se);
} catch(IOException ioe) {
Log.e("SAX XML", "sax parse io error", ioe);
}
return country;
}
}