The original SAX specification did not deal with lexical constructs like
CDATA and comments.  If you want to use a LexicalHandler, you'll have to
use the new SAX2 implementation.

Dave



                                                                                       
        
                    "Ken Crismon"                                                      
        
                    <ken.crismon@ri        To:     <[EMAIL PROTECTED]>       
        
                    olabs.com>             cc:     (bcc: David N Bertoni/CAM/Lotus)    
        
                                           Subject:     RE: SAX and CDATA sections     
        
                    07/23/2001                                                         
        
                    01:19 PM                                                           
        
                    Please respond                                                     
        
                    to xerces-c-dev                                                    
        
                                                                                       
        
                                                                                       
        



Joseph,

Are you saying that I can "implement" a startCDATA and endCDATA in the same
fashion that I can implement a StartElement and EndElement?

Also does the StartCDATA and EndCDATA wrap around a normal call to a
characters call?

Thanks for the help,

Ken Crismon
RioLabs, Inc

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: SAX and CDATA sections



If you're using the DOM API, CDATA sections show up as CDATASection nodes
(a subclass of Text nodes, with a different node-type number).

If you're using the SAX API, start/endCDATA events are sent to the
LexicalHandler, if you register one with your XMLReader before it begins
delivering events.


---------------------------------------------------------------------
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]






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

Reply via email to