protected function getWriter()
    {
        $writer = new \XMLWriter();
        $writer->openMemory();
        if ($this->indent) {
            $writer->setIndent(true);
            $writer->startDocument('1.0', 'UTF-8');
        } else {
            $writer->setIndent(false);
            $writer->startDocument();
        }
        return $writer;
    }
protected function getWriter()
    {
        $writer = new \XMLWriter();
        $writer->openMemory();
        if ($this->indent) {
            $writer->setIndent(true);
            $writer->startDocument('1.0', 'UTF-8');
        } else {
            $writer->setIndent(false);
            $writer->startDocument();
        }
        return $writer;
    }
protected function getWriter ( ) { $ writer = new \ XMLWriter ( ) ; $ writer -> openMemory ( ) ; if ( $ this -> indent ) { $ writer -> setIndent ( true ) ; $ writer -> startDocument ( '1.0' , 'UTF-8' ) ; } else { $ writer -> setIndent ( false ) ; $ writer -> startDocument ( ) ; } return $ writer ; }
Return an XML writer that will be used
to produce XML-RPC requests and responses.

\retval XMLWriter
XML writer to use to produce documents.
Return an XML writer that will be used to produce XML - RPC requests and responses .