I am using a DOMDocument object to create a xml message. So far so good, but now I need to serialize this xml message in order to send it via http. While looking at the DOM documentation I have not found a way to serialize this DOM document.