Definition and usage The libxml_clear_errors() function clears the libxml error buffer. grammar libxml_clear_errors() Example <?phplibxml_clear_errors()?>