Normalizing messages into a common XML format