No there is only one namespace for the whole Xerces package.
I just realized that I wrote the wrong namespace for you last time. It
should have been XERCES_CPP_NAMESPACE and not XALAN_CPP_NAMESPACE.
Sorry. My bad.

/ Erik

> -----Original Message-----
> From: Andre Stock [mailto:[EMAIL PROTECTED]
> Sent: den 11 juni 2004 11:46
> To: [EMAIL PROTECTED]
> Subject: RE: Simple SAX-C++-Parser Documentation - Newbie
> 
> Thank you, that is the information i needed! I still have problems
with
> the
> namespaces, are they all defined in XercesDefs.hpp or do i have to
include
> another headerfile eventually? The whole xerces project is so complex
for
> a
> newb like me, i`m just confused! ;-)
> 
> 
> > I think this is a simple one. The DefaultHandler resides inside the
> > Xalan namespace. You'll have to write something like this.
> >
> > class CHandler : public XALAN_CPP_NAMESPACE::DefaultHandler
> >
> > Everything in Xerces or Xalan is defined inside namespaces. You will
> > always have to prefix them or else the compiler won't find them.
> >
> > / Erik
> >
> > > -----Original Message-----
> > > From: Andre Stock [mailto:[EMAIL PROTECTED]
> > > Sent: den 11 juni 2004 10:59
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: Simple SAX-C++-Parser Documentation - Newbie
> > >
> > > But how can i inherit from this interface? when i create a
headerfile
> > > (CHandler.hpp)and include the DefaultHandler.hpp and make
something
> > like
> > > (class CHandler : public DefaultHandler
> > > {
> > > public:
> > >           void startDocument();
> > > }
> > >
> > > i get an error message from the compiler specifying that the
baseclass
> > > DefaultHandler is undefined.Sorry, i`m new to c++ (i`m using VC++
> > .NET)so
> > > please don`t hit me! ;-)
> > >
> > > > 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]
> > > >
> > >
> > > --
> > > +++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
> > > GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
> >
> >
> 
> --
> +++ 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