[Expat-discuss] Parsing CDATA section

Marco Forberg marco.forberg at gmx.net
Sat May 26 08:51:52 CEST 2007


>Have you tried SetCdataSectionHandler? (
>> http://www.xml.com/pub/a/1999/09/expat/index.html?page=3#cdatahandler)
>
>
>Well, i went through that, but could not figure out how i can proceed .
>
>I haven't myself--I just assumed Expat would treat CDATA sections just like
>> any other XML text.
>
>
>That's true.
>
>Ramprasad B

Expat treats CDATA as any other text BUT calls the cdata start and end
handlers before and after it passes your text to the text handler. So the
the order of the calls would be the following:

CDATA section start handler
Text handler <-- this is your CDATA
CDATA section end handler



More information about the Expat-discuss mailing list