public function addCData($name, $cdata)
    {
        $nameUtf8 = $this->_toUTF8($name);
        $node = $this->_SimpleXmlElement->addChild($nameUtf8);
        $domnode = dom_import_simplexml($node);
        $no = $domnode->ownerDocument;
        $domnode->appendChild($no->createCDATASection($cdata));

        return new SimpleXMLExtended($node, $this->_encoding);
    }
public function addCData($name, $cdata)
    {
        $nameUtf8 = $this->_toUTF8($name);
        $node = $this->_SimpleXmlElement->addChild($nameUtf8);
        $domnode = dom_import_simplexml($node);
        $no = $domnode->ownerDocument;
        $domnode->appendChild($no->createCDATASection($cdata));

        return new SimpleXMLExtended($node, $this->_encoding);
    }
public function addCData ( $ name , $ cdata ) { $ nameUtf8 = $ this -> _toUTF8 ( $ name ) ; $ node = $ this -> _SimpleXmlElement -> addChild ( $ nameUtf8 ) ; $ domnode = dom_import_simplexml ( $ node ) ; $ no = $ domnode -> ownerDocument ; $ domnode -> appendChild ( $ no -> createCDATASection ( $ cdata ) ) ; return new SimpleXMLExtended ( $ node , $ this -> _encoding ) ; }
insert a child with cdata section

@param String $name  name of the child element
@param String $cdata data for CDATA section

@return SimpleXMLExtended extended child SimpleXMLElement
insert a child with cdata section