开发者

android Sax parsing exception for "»" character

开发者 https://www.devze.com 2022-12-20 08:10 出处:网络
hi friends i\'m using Sax parser for parsing my xml file开发者_运维问答 which i recieve from the internet... The problem is that the normal xml is parsed fine except the xml files which have \"»\" sy

hi friends i'm using Sax parser for parsing my xml file开发者_运维问答 which i recieve from the internet... The problem is that the normal xml is parsed fine except the xml files which have "»" symbol in the attributes...

everytime i try parsing the file i get the following error

02-11 16:57:35.547: INFO/System.out(754): org.apache.harmony.xml.ExpatParser$ParseException: At line 9, column 0: not well-formed (invalid token)

Is there any methid by which i can bypass this character ar handle it myself through java code??? Thanx in advance...


Encode » as the XML entity » instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消