SYNOPSISvoid xmlTreeCleanup(xmlDoc doc [, int options])
Parameters:
doc
- the xmlDoc
to remove unlinked orphans fromoptions
- specifying 1
will cause verbose messages
to be printed about what it's cleaning up
DESCRIPTIONxmlTreeCleanup()
can be used in very specific circumstances to
assist with memory management of XML trees. Most code will never need
to call this.
If you have a situation where:
xmlTreeUnlinkNode
xmlDoc
they came from is
freed. Calling xmlTreeCleanup()
forces the xmlDoc
to
free any unlinked nodes that do not have any Vortex variables set
to them.
EXAMPLE<$ret = (xmlTreeCleanup($doc))>