5
url 링크에서 XML 파일을 가져 오려고합니다. 이 코드는 android에 있습니다. SAXParser를 사용하고 있습니다. 하지만 난 오류가 :이 라인에android (형식이 올바르지 않습니다 (토큰이 유효하지 않습니다)) saxParser에 오류가 있습니다.
org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 87: not well-formed (invalid token)
saxParser.parse(url.openStream(),handler);
내 코드는 다음과 같습니다
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);
은
는 무엇을 을
을 수행 할 수 있습니다 ?