Re: [xml] xmlNewNs question



On Tue, Nov 14, 2006 at 10:02:17AM -0600, David Hagood wrote:
If I create a xmlNsPtr for a node, and then the node is destroyed, is
the xmlNsPtr still valid

  No. You must be careful when destroying an element about its subtree.

and available for other nodes? If is is invalid, does
it need to be freed?

  Invalid in an XML context has a very precise meaning related to DTD
validation, I don't see what you mean here.


It refers to the previous question - if the xmlNodePtr for which the
xmlNsPtr is created is destroyed, does the xmlNsPtr need to be freed, or
is it implicitly freed when the xmlNodePtr is freed.



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