public function writeCData(string $cdata): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($cdata)
                {
                    $parent->appendChild(
                            $this->doc->createCDATASection($this->encode($cdata))
                    );
                },
                'cdata'
        );
    }
public function writeCData(string $cdata): XmlStreamWriter
    {
        return $this->append(
                function(\DOMNode $parent) use ($cdata)
                {
                    $parent->appendChild(
                            $this->doc->createCDATASection($this->encode($cdata))
                    );
                },
                'cdata'
        );
    }
public function writeCData ( string $ cdata ) : XmlStreamWriter { return $ this -> append ( function ( \ DOMNode $ parent ) use ( $ cdata ) { $ parent -> appendChild ( $ this -> doc -> createCDATASection ( $ this -> encode ( $ cdata ) ) ) ; } , 'cdata' ) ; }
Write a cdata section

@param   string  $cdata
@return  \stubbles\xml\XmlStreamWriter
Write a cdata section