private function writeFile(fDOMDocument $dom, $filename)
    {
        $dom->formatOutput = true;
        $result = $dom->save($filename);

        return ($result !== false) ? true : false;
    }
private function writeFile(fDOMDocument $dom, $filename)
    {
        $dom->formatOutput = true;
        $result = $dom->save($filename);

        return ($result !== false) ? true : false;
    }
private function writeFile ( fDOMDocument $ dom , $ filename ) { $ dom -> formatOutput = true ; $ result = $ dom -> save ( $ filename ) ; return ( $ result !== false ) ? true : false ; }
Writes the merged result file.

@param fDOMDocument $dom
@param string       $filename

@return bool
Writes the merged result file .