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:
on this line
my code is:
What can be done?
And I dont have & on my xml.
thanks a lot
Code:
org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 87: not well-formed (invalid token)
Code:
saxParser.parse(url.openStream(),handler);
Code:
URL url = null;
try {
url = new URL("http://www.ynet.co.il/Integration/StoryRss1854.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);
And I dont have & on my xml.
thanks a lot