Not sure if this is true for everyone, but when I write a post and include a code segment like XML, it will appear as desired in the preview, but not once I post the message.
This is what I see when composing the message:
------------------------------
Andy Reimer
------------------------------