Wednesday, March 27, 2002 05:46 AM
The SAX parser will call your
method whenever it finds strings of contiguous characters. If you have an entity like & in your text, then you'll get three calls to
: one for the first part of the text, one for the '&' character, and one for the remaining characters.
I don't think you can change the way this occurs.
If you want to use DOM, you won't have to worry about this, but, then again, DOM uses SAX, so there's no performance benefit.
Although XML is sexy and everything, nobody uses it if they think performance is an issue.