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