Fixed invalid xml char in SosMaxLog. Refactoring.