Xerces has one, but it's internal.  There's one in Xalan-C++, and it's
public, but I'm not sure how well documented it is.

Dave



                                                                                       
                                               
                      moladell@factset                                                 
                                               
                      .com                     To:      [EMAIL PROTECTED]    
                                               
                                               cc:      (bcc: David N 
Bertoni/CAM/Lotus)                                              
                      01/30/2002 12:33         Subject: Content Handler                
                                               
                      PM                                                               
                                               
                      Please respond                                                   
                                               
                      to xerces-c-dev                                                  
                                               
                                                                                       
                                               
                                                                                       
                                               



I'm trying to use the ContentHandler interface in an application to
generate SAX2 events instead of handling them.  I.e., within my code, I
have function that takes a pointer to a ContentHandler interface and then
calls methods on the interface as necessary to generate SAX2 like events
based based on its internal data structures.

Generally, when one writes a content handler it is handed off to the
SAX2XMLReader which calls the functions as it parses the XML.  In this
case, when startElement is called, the Attributes interface will already
have been implemented and populated by the parser or some other agent
acting on behalf of the parser.  However, if one is trying to use the
ContentHandler to generate SAX events, one has to instantiated an instance
of the Attributes interface and populate it prior to calling startElement.

My question is what, if any, implementations of the Attributes interface
are available to me as a generator of SAX2 events and where is the
documentation on those implementations?

Marcus C. Oladell
Software Engineer
Factset Research Systems
[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