src/XQueue/Maileon/API/XML/XMLUtils.php
static public function addChildAsCDATA($parent, $name, $value = NULL)
    {
        $new_child = $parent->addChild($name);

        if ($new_child !== NULL) {
            $node = dom_import_simplexml($new_child);
            $no = $node->ownerDocument;
            $node->appendChild($no->createCDATASection($value));
        }

        return $new_child;
    }
static public function addChildAsCDATA($parent, $name, $value = NULL)
    {
        $new_child = $parent->addChild($name);

        if ($new_child !== NULL) {
            $node = dom_import_simplexml($new_child);
            $no = $node->ownerDocument;
            $node->appendChild($no->createCDATASection($value));
        }

        return $new_child;
    }
Adds a child with $value inside CDATA
@param unknown $name
@param unknown $value