ignoring invalid unicode characters when parsing an XML Stream

I'm workingon an application that extrtacts large number of records from a database in form of XML data (you can think of each record as a separate XML file) and parses that data. Im using java 1.5.06 se jdk and use STAX for parsing. some portions of my data contain invalid XML characters:

") as the DamkAvhler number Da B"* 0. A numerical simulation of the integrod"

naturally as soon as the curser gets to an element which contains these characters i get the following error:

ParseError at [row,col]:[46,36]

Message: An invalid XML character (Unicode: 0x1b) was found in the element content of the document.

javax.xml.stream.XMLStreamException: ParseError at [row,col]:[46,36]

how can i tell the parser to ignore these charcters and not read them at all? is there anything i can do to get as much of the data as possible without having to get the whole thing as a huge string and replace bad characters?

[957 byte] By [hnafara] at [2007-10-2 20:14:39]
# 1
it is invalid character in XML, so the XML is bad.what you can do is to write a custom filter, that filters out the bad character while streaming into your transformer. look up the XML custom filter.
yue42a at 2007-7-13 22:56:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
You will have to filter that character out BEFORE the parser gets hold of it. A customized FilterInputStream would probably do the trick. Beating on the bozos who produced that malformed XML would also help.
DrClapa at 2007-7-13 22:56:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...