RE: [libxml++] SaxParser and getEntity



> From: Christophe de VIENNE [mailto:cdevienne alphacent com] 
> While removing libxml includes from headers I faced two 
> little problems with 
> getEntity.
> First it has, for now, to return a libxml structure.
> Second the default behavior to give to this callback function 
> is not trivial ( 
> see http://mail.gnome.org/archives/xml/2003-April/msg00112.html ).


> To make minimal changes, I want to do the following :
>  - add a boolean parameter to the SaxParser constructor which 
> tells if the 
> on_get_entity has to be called, with default value to false.

OK. I understand this better now. It sounds necessary, not just
nice-to-have.

>  - In order to overload this callback function, the lib user 
> will have to 
> include himself libxml2 header to have the definition of 
> xmlEntity since 
> saxparser.h only make a forward declaration of the struct.

That sound OK.

> Once it's done the libxml headers will not be included 
> anymore by libxml++ 
> users.

Cool.

Murray Cumming
murrayc usa net
www.murrayc.com 




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