Re: [xml] libxml string handling
- From: Justin Fletcher <justin fletcher ntlworld com>
- To: xml gnome org
- Subject: Re: [xml] libxml string handling
- Date: Thu, 13 Jun 2002 15:26:29 +0100
In message <20020613050127 X3096 redhat com>
Daniel Veillard <veillard redhat com> wrote:
On Thu, Jun 13, 2002 at 09:47:33AM +0200, Stefan Kost wrote:
a while ago, there ws a discussion about string handling in libxml (too many strdups).
what about this approach :
>>>>
from : http://www.redland.opensource.ac.uk/docs/api/objects.html
It is often convienent to get a string representation of an object for
further processing, debugging or serialisation. There are two
conventions for methods that provide this functionality - the first is
when a pointer is returned to a shared copy of the string and in that
case the method ends _as_string. The second is when a pointer is
returned to a newly allocated string in which case the method ends
_to_string.
<<<<
That mean a complete API/ABI change. Could be looked at for libxml3
if it ever get done, but in the meantime, this is unusable I'm afraid.
If anyone /really/ wants to deal with this sort of thing within the current
structure, they could still be handled through #define's. However, this
would purely be a convention for the xml2 users, rather than xml2 itself.
--
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... Eyes to the heavens, screaming at the sky;
Trying to send you messages, but choking on goodbye.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]