startCDATA and endCDATA are lexical handler events and you need to
set your handler as the parser's lexical handler.
e.g. parser->setLexicalHandler(defaultHandler);
Khaled
"Avula, Raj" wrote:
> Hi,
> I have a SAX Parser implementation for processing XML where in
> I have a class that is derived from DefaultHandler. and I am using
> SAX2XMLReader
> to parse the XML file.
> But the problem is if CDATA section is present in the XML, startCDATA and
> endCDATA events
> are not getting fired. Is there any thing else I need to do?
> I am usign xerces c 2.2.
>
> <Customer>
> <CustNum>12000</CustNum>
> <Order>
> <OrderNumber>ORD-3330</OrderNumber>
> <item><![CDATA[ MY & CDATA ]]></item>
> <OrderDate>11/07/2001</OrderDate>
> </Order>
> </Customer>
>
> Thanks for the help.
>
> Raj...
>
> ---------------------------------------------------------------------
> 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]