Seperated XML logic from the Messages form for uniformity purposes