ownerDocument; $node->appendChild($no->createCDATASection($cdata_text)); } /** * Create a child with CDATA value * * @param string $name The name of the child element to add. * @param string $cdata_text The CDATA value of the child element. */ public function addChildCData($name, $cdata_text) { $child = $this->addChild($name); $child->addCData($cdata_text); } }