protected function _appendDataToNode($addCdata, Xml $xml, $key, $value)
    {
        if ($addCdata) {
            $cdata      = $xml->createCDATASection($value);
            $element    = $xml->createElement(
                $this->_integerToStringKey($key)
            );
            $element->appendChild($cdata);
        } else {
            $element = $xml->createElement(
                $this->_integerToStringKey($key),
                $value
            );
        }

        return $element;
    }
protected function _appendDataToNode($addCdata, Xml $xml, $key, $value)
    {
        if ($addCdata) {
            $cdata      = $xml->createCDATASection($value);
            $element    = $xml->createElement(
                $this->_integerToStringKey($key)
            );
            $element->appendChild($cdata);
        } else {
            $element = $xml->createElement(
                $this->_integerToStringKey($key),
                $value
            );
        }

        return $element;
    }
protected function _appendDataToNode ( $ addCdata , Xml $ xml , $ key , $ value ) { if ( $ addCdata ) { $ cdata = $ xml -> createCDATASection ( $ value ) ; $ element = $ xml -> createElement ( $ this -> _integerToStringKey ( $ key ) ) ; $ element -> appendChild ( $ cdata ) ; } else { $ element = $ xml -> createElement ( $ this -> _integerToStringKey ( $ key ) , $ value ) ; } return $ element ; }
append data to node

@param string $addCdata
@param Xml $xml
@param string|integer $key
@param string $value
@return DOMElement
append data to node