xmlFreeDoc is available since version 1.0.
Prototype:
null-returned xmlFreeDoc(number doc)
Parameters
doc
the XML document tree handle as returned by
xmlParseMemory or { xmlParseFile}
Description:
Free up all the structures used by a document, tree included.
Return value:
Return nothing.