The fact that for every start tag there must be an end tag makes it
relatively easy to efficiently handle the text between tags.  Unless of
course, your XML document has mixed mode elements (text and markup between a
start and an end tag).  Mixed mode complicates the matter a little bit more.
If you are not already doing so, I recommend that you use a CharArrayWriter
to handle the capturing of the text in the characters method then convert
the characters to a String in the endElement method.  Do not forget to reset
the CharArrayWriter after you have converted the characters to a String.

Dane Foster
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
----- Original Message -----
From: "Kevin Steppe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 9:33 PM
Subject: Re: Crimson bug?


It's still a pain.  It means that I can't do actual processing within the
characters
call back and have to wait until some other call back.  For what I'm doing
the
ContentHandler actually -can't- wait and so I've had to rebuffer the
character data.
The end result is lower effeciency because of all the buffering and method
calls I
have to make to get around the 'efficiency' on the parser side.

Kevin


Edwin Goei wrote:

> Kevin Steppe wrote:
> >
> > Well that's a pain, but at least it's a sold answer I can work with and
rely on.
>
> It is for efficiency because it allows the parser to buffer data.
>
> -Edwin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to