Re: [xml] xmlNewNs

On Fri, May 22, 2009 at 02:57:38PM +0200, Laurent Marzullo wrote:

I've notice that "xmlNewNs" does not delete the string I gave it. So, as  
my prefix is a newly created one (with xmlStrndup) I would like to know  
if there's a way
to "register" this string as to be deleted at document deletion time or  
if I should take care of it myself ?

  The strings you pass are copied internally. You allocate them, you
free them, it's not libxml2 responsability.


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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