I have a problem with a SAX xml parser. I want to parse a xml file which obviously is not valid (I get an ExpatParser$ParseException: At line 5, column 169: not well-formed (invalid token)). I know what is wrong, but the xml file ist not created by me...so I cant change it.
Now I want to handle that Error in my DefaultHandler. But neither error() nor fatalError() nor warning() is invoked...
Can I somehow interrupt the parsing process, tell the parser what to do with that piece of invalid xml and continue parsing???
Thanks, JPM