Fixed BZ#1017475 - Spaces are being removed in inline elements when formatting the xml
Minor addition to allow content to be pretty printed when converting a Document to a String.