public function trapXMLError($errno, $errstr, $errfile, $errline)
    {
        $this->__error($errno, str_replace('DOMDocument::', null, $errstr), $errfile, $errline, 'xml');
    }
public function trapXMLError($errno, $errstr, $errfile, $errline)
    {
        $this->__error($errno, str_replace('DOMDocument::', null, $errstr), $errfile, $errline, 'xml');
    }
public function trapXMLError ( $ errno , $ errstr , $ errfile , $ errline ) { $ this -> __error ( $ errno , str_replace ( 'DOMDocument::' , null , $ errstr ) , $ errfile , $ errline , 'xml' ) ; }
A custom error handler especially for XML errors.

@link http://au.php.net/manual/en/function.set-error-handler.php
@param integer $errno
@param integer $errstr
@param integer $errfile
@param integer $errline
A custom error handler especially for XML errors .