在解析xml文件中的网址时,出现如下错误:
W/System.err( 4316): org.apache.harmony.xml.ExpatParser$ParseException: At line 221,column 86: not well-formed (invalid token)
W/System.err( 4316): at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:515)
W/System.err( 4316): at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:474)
W/System.err( 4316): at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)
W/System.err( 4316): at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
原来是因为网址中有“&”符号没有按html的标准写将xml网址中的"&"改成"&"解决此问题