Message class with xml parsing implemented