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