views:

406

answers:

1

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...

A: 

Encode » as the XML entity » instead.

Amber
got it Dav... Thanx a lot... actually got another html code too... but does this mean that there is no way we can handle it through code???i mean my xml is prepared by the client... if he makes a mistake the app suffers... cant we handle it somehow???
JaVadid