Re: [xml] Only through experimentation :o) XML and memory



On Tue, Nov 30, 2004 at 08:36:22PM +0000, Jose Commins wrote:
allocated nodes.  I want to make sure my assumption is right, that 
'xmlFreeDoc' will also deallocate/free any new nodes linked in to the 
doc?

  xmlFreeDoc deallocate all nodes reachable from the document node !
It is what the doc says, it is what it does.
   http://xmlsoft.org/html/libxml-tree.html#xmlFreeDoc

if you linked a node to the doc it will be freed, if you didn't link it
it won't be freed.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://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]