Re: [xml] libxml string handling

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 :

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

  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.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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