note 52585 deleted from function.domdocument-add-root by nlopess
| From: | nlopess@php.net | Date: | Fri, 06 May 2005 18:50:43 +0000 |
| Subject: | note 52585 deleted from function.domdocument-add-root by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89024@lists.php.net to get a copy of this message | ||
Note Submitter: marcofw at web dot de
----
add_root commits a segmentation fault on apache, when I have used it for setting a new root on a
document which has one.
My solution looks now like this:
$old_root = $xml_doc->document_element();
$root = $xml_doc->create_element('Result');
$old_root->replace_node($root);