Added message creationg function to Xml. Todo for style system.