note 75316 deleted from function.simplexml-load-string by cmb
| From: | cmb@php.net | Date: | Sun, 15 Dec 2019 10:14:38 +0000 |
| Subject: | note 75316 deleted from function.simplexml-load-string by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213534@lists.php.net to get a copy of this message | ||
Note Submitter: youx_free_fr
----
While needing to add an xml subtree to an existing simplexml object, I noticed that
simplexml_load_string fails with strings like
<emptynode></emptynode>
I needed to use dom instead of simplexml to bypass this problem and work with any kind of xml
strings.