libxml_clear_errors

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Clear libxml error buffer
<?php libxml_clear_errors(): void
<?php     public function validate(): array

    {

        libxml_use_internal_errors(true);

        libxml_clear_errors();



        $writer = new InvoicesDocWriter();

        $xml = $writer->asXML(new InvoicesDoc($this));