src/Xml/Writer.php
public function toString($format = null)
    {
        if ($format) {
            $this->dom->formatOutput = true;
        }
        return $this->dom->saveXML();
    }
public function toString($format = null)
    {
        if ($format) {
            $this->dom->formatOutput = true;
        }
        return $this->dom->saveXML();
    }
public function toString ( $ format = null ) { if ( $ format ) { $ this -> dom -> formatOutput = true ; } return $ this -> dom -> saveXML ( ) ; }
Convert the internal dom instance to a string.

@param boolean $format Whether to pretty format the string or not

@return string
Convert the internal dom instance to a string .