public function setCdata($text) { foreach ($this->nodes as $n) { $n->nodeValue = ''; $n->appendChild(new \DOMCDATASection($text)); } return $this; }