Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

URGENT: SAX hangs with "& # xxx ;" codes

843834Nov 27 2001 — edited Nov 29 2001
While 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2001
Added on Nov 27 2001
5 comments
7,642 views