I am trying to get xml file from url link . This code for android. I am using SAXParser for doing it. but I have error:
org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 87: not well-formed (invalid token)
on this line
saxParser.parse(url.openStream(),handler);
my code is:
URL url = null;
try {
url = new URL("toryRss1854.xml");
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser = null;
try {
saxParser = factory.newSAXParser();
saxParser.parse(url.openStream(),handler);
What can be done?