note 37159 deleted from function.domdocument-add-root by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 03:41:30 +0000 |
| Subject: | note 37159 deleted from function.domdocument-add-root by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207408@lists.php.net to get a copy of this message | ||
Note Submitter: Jorrit Kronjee
----
For those not closely reading the documentation (like me), this is an example of adding a root
without add_root.
$new_dom = domxml_new_doc("1.0");
$new_element = $newdom->create_element("root_el");
$new_node = $newdom->append_child($new_element);