Re: [xml] xmlNewNs



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

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

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



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