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?