Closed johnjc1 closed 11 years ago
This is coming out of the SAX parser: it's the "]" character causing the issue. If I had to guess this is going to turn out to be a bug in the way we look for the end of CDATA sections but it's a while since I've looked at that bit of code.
Should be fixed by 5a936d7e849cfbbc7ff197c2e280260e5483ac8f but - as the commit message says - I still need to check for similar bugs and write test cases for this.
Added the tests (using the dom interface - it's easier). By inspection of the code I cannot see other similar cases.
problem description:
Im trying to extract the text between the name tags. The text data seems to get mangled if bracket characters appear in the text. Im not aware that these characters are illegal?
Example input file:
output on screen:
source code: