Skip to main content

free_doc

Function free_doc 

Source
pub unsafe fn free_doc(doc: *mut _xmlDoc)
Expand description

Free a document and all its contents.

§UPSTREAM-PARITY

void xmlFreeDoc(xmlDocPtr doc);

Frees the document, its DTDs, and all nodes in the tree.

§SAFETY

  • doc must be a valid pointer to an _xmlDoc, or NULL.