rapidxml
void clear ( ) [inline]

Clears the document by deleting all nodes and clearing the memory pool. All nodes owned by document pool are destroyed.

Reimplemented from memory_pool< Ch >.

References xml_node< Ch >::remove_all_attributes(), and xml_node< Ch >::remove_all_nodes().