private function writeDocument(\DOMDocument $dom)
    {
        $dom->formatOutput = true;
        $this->write($dom->saveXML());
    }
private function writeDocument(\DOMDocument $dom)
    {
        $dom->formatOutput = true;
        $this->write($dom->saveXML());
    }
private function writeDocument ( \ DOMDocument $ dom ) { $ dom -> formatOutput = true ; $ this -> write ( $ dom -> saveXML ( ) ) ; }
Writes DOM document.

@return \DOMDocument|string
Writes DOM document .