URGENT: SAX hangs with "& # xxx ;" codes
843834Nov 27 2001 — edited Nov 29 2001While trying to parse a common xml file, sax works perfeclty. However, when the character set in the xml file is UTF-8, it hangs in all the & # xxx ; codes (where xxx is a number). It doesnt actually hang but it crops the text, saying that it's start position is in the & instead of just after the > (and the white spaces)
I just thought that one way out is to search if the preceding characters are the &... sequences and then look behind for the previous >... and so on
This is quite a crapy way out
Any other way? Anyone has come across this?
Thanks in advance
Guilherme