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

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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