protected function formatLibXmlError(LibXMLError $error)
    {
        return sprintf(
            '%s in %d:%d: %s',
            $this->errorTypes[$error->level],
            $error->line,
            $error->column,
            trim($error->message)
        );
    }
protected function formatLibXmlError(LibXMLError $error)
    {
        return sprintf(
            '%s in %d:%d: %s',
            $this->errorTypes[$error->level],
            $error->line,
            $error->column,
            trim($error->message)
        );
    }
protected function formatLibXmlError ( LibXMLError $ error ) { return sprintf ( '%s in %d:%d: %s' , $ this -> errorTypes [ $ error -> level ] , $ error -> line , $ error -> column , trim ( $ error -> message ) ) ; }
Formats libxml error object as a string.

Example: Error in 6:0: Expecting an element title, got nothing

@param \LibXMLError $error

@return string
Formats libxml error object as a string .