code to use ErrorLogger::reportErr() for all errors, for both xml and plain text. And move xml formatting from Cppcheck to CppcheckExecutor.
code to use ErrorLogger::reportErr() for all errors, for both xml and plain text. And move xml formatting from Cppcheck to CppcheckExecutor.