18 static function appendChild(SimpleXMLElement $to, SimpleXMLElement $from)
20 $toDom = dom_import_simplexml($to);
21 $fromDom = dom_import_simplexml($from);
22 $toDom->appendChild($toDom->ownerDocument->importNode($fromDom,
true));
32 $new_child = $parent->addChild($name);
34 if ($new_child !== NULL) {
35 $node = dom_import_simplexml($new_child);
36 $no = $node->ownerDocument;
37 $node->appendChild($no->createCDATASection($value));
static addChildAsCDATA($parent, $name, $value=NULL)
static appendChild(SimpleXMLElement $to, SimpleXMLElement $from)