public function doXmlDeclaration($called_from_macro = false)
    {
        if ($this->_xmldeclaration && $this->getOutputMode() !== PHPTAL::HTML5) {
            $code = '$ctx->setXmlDeclaration('.$this->str($this->_xmldeclaration).','.($called_from_macro?'true':'false').')';
            $this->pushCode($code);
        }
    }
public function doXmlDeclaration($called_from_macro = false)
    {
        if ($this->_xmldeclaration && $this->getOutputMode() !== PHPTAL::HTML5) {
            $code = '$ctx->setXmlDeclaration('.$this->str($this->_xmldeclaration).','.($called_from_macro?'true':'false').')';
            $this->pushCode($code);
        }
    }
public function doXmlDeclaration ( $ called_from_macro = false ) { if ( $ this -> _xmldeclaration && $ this -> getOutputMode ( ) !== PHPTAL :: HTML5 ) { $ code = '$ctx->setXmlDeclaration(' . $ this -> str ( $ this -> _xmldeclaration ) . ',' . ( $ called_from_macro ? 'true' : 'false' ) . ')' ; $ this -> pushCode ( $ code ) ; } }
Generate XML declaration

@param bool $called_from_macro for error checking: unbuffered output doesn't support that
Generate XML declaration