[libxml++] SaxParser and getEntity



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

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 ).

I think the ideal would be to wrap xmlEntity in a xmlpp::Entity class. But I 
don't want to go for such a developpement now. If somebody really need it you 
can propose a patch.

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.
 - 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.

Do you agree with that ?

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

Regards,

Christophe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+zfW1B+sU3TyOQjARAsVKAJ97NwI98YttAeUQGvHqMVLled4qoACeOl8s
cTMQpRRg/ynmFoYTAK7KPJI=
=vImA
-----END PGP SIGNATURE-----





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