Use DOMDocument::saveXML for PHP < 5.3.6

DOMDocument::saveXML instead of DOMDocument::saveHTML