[libxml++] unifying text nodes



Hi,

I posted a patch that defines a common base class for all non-element nodes.
these nodes all share the 'content' concept which gives access to the text
inside the node. This class is also a good default for all the node types
that are not handled specifically.
The class hierarchy I defined is not exactly the same as the DOM definition.
it creates one base class for text, cdata, comment and processing
instruction, whereas the DOM has a little different inheritance.

Do you feel that it is preferable to follow the DOM class hierarchy for
these nodes?

Thanks,
-eff



----- Original Message ----- 
From: "Ephraim Vider" <eff eplication com>
To: <libxmlplusplus-general lists sourceforge net>
Sent: Wednesday, June 04, 2003 10:47 AM
Subject: Re: [libxml++] windows compile error with latest release


>
> I fixed it by moving the static member initialization to the .cc file
> but a public enum is even better.
>
> -eff
>
> ----- Original Message ----- 
> From: <Murray Cumming Comneon com>
> To: <libxmlplusplus-general lists sourceforge net>
> Sent: Wednesday, June 04, 2003 9:33 AM
> Subject: RE: [libxml++] windows compile error with latest release
>
>
> > > 'Default' : pure specifier can only be specified for functions
> > >
> > >   class KeepBlanks {
> > >     public:
> > > -->      static const bool Default = true;
> >
> > This does look a bit unusual to me. I always thought that static members
> > should be initialized in the .cpp file. Anyway, I think an enum would be
> > acceptable instead.
> >
> > Murray Cumming
> > murrayc usa net
> > www.murrayc.com
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> > thread debugger on the planet. Designed with thread debugging features
> > you've never dreamed of, try TotalView 6 free at www.etnus.com.
> > _______________________________________________
> > Libxmlplusplus-general mailing list
> > Libxmlplusplus-general lists sourceforge net
> > https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Libxmlplusplus-general mailing list
> Libxmlplusplus-general lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general
>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]