[Expat-discuss] CDATA parsing

Sebastian Pipping webmaster at hartwork.org
Wed Sep 10 20:22:37 CEST 2008


David van Geest wrote:
>>> I'm wondering how CDATA sections are handled by the parser.   Our
>>> wrapper classes return the first 21 characters of the CDATA section
> as
>>> the value of the node containing the section, and I can't figure out
>>> what is happening to the rest.
>> Is there just one call of your handler function?
> 
> There is only one case where we are parsing a file with a CDATA section.
> I've tried all sorts of things to get at the data, but all of them
> return the same 21 characters.

I think you might have misunderstood my question.
Is you callback handler only called one time?
I have not worked with the CDATA handler before
but it reminds of #1 confusion coming up here
that character can be served split over several
handler calls.  Could that be the case for you?



Sebastian


More information about the Expat-discuss mailing list