The default handler is only a stub interface (it does nothing). As you
suggested you'll have to inherit the DefaultHandler and override the
methods you need.

/ Erik

> -----Original Message-----
> From: Andre Stock [mailto:[EMAIL PROTECTED]
> Sent: den 11 juni 2004 09:37
> To: [EMAIL PROTECTED]
> Subject: RE: Simple SAX-C++-Parser Documentation - Newbie
> 
> Yes, i did! And a few problems are solved now, but how can i tell the
> DefaultHandler what to do if an event occured? I recognized that the
> DefualtHandler.cpp file is missing, do i have to implement it by
myself or
> do i have to create another class (for example Handler.cpp)which
inherits
> from the DefaultHandler.hpp and redefines the methods needed?
> THX in advance
> Andre
> 
> > Have you looked at the SAXPrint sample app?
> >
> > > -----Original Message-----
> > > From: Andre Stock [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 09, 2004 6:05 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Simple SAX-C++-Parser Documentation - Newbie
> > >
> > > Hi!
> > > I`ve various problems implementing a simple SAX Parser. The
> > > Parser have to
> > > read from an XML stream. So if anyone can help me how to start or
even
> > > better have a simple parser code fragment for my purposes,
> > > i`ll be very
> > > grateful for that. I don`t know which classes to use and how
> > > they depends on
> > > each other. For example, what is the function of SAX2XMLReader and
the
> > > SAXParser classes? (and is the SAX2XMLReader way to bulky for
> > > solving my
> > > problems?is there a smaller,sufficient class?)Is it necessary
> > > to override
> > > all methods or how can I tell my application that an element
> > > was found (via
> > > the DefaultHandler?) Sorry for all these (stupid) questions
> > > but I`m really
> > > desperate! ;-)
> > > THX
> > > Andre
> > >
> > > --
> > > +++ Jetzt WLAN-Router f�r alle DSL-Einsteiger und Wechsler +++
> > > GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
> > >
> > >
> > >
---------------------------------------------------------------------
> > > 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]
> >
> 
> --
> +++ Jetzt WLAN-Router f�r alle DSL-Einsteiger und Wechsler +++
> GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
> 
> 
> ---------------------------------------------------------------------
> 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