note 103299 deleted from simplexmlelement.addchild by danbrown
| From: | danbrown@php.net | Date: | Wed, 06 Apr 2011 13:43:22 +0000 |
| Subject: | note 103299 deleted from simplexmlelement.addchild by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178557@lists.php.net to get a copy of this message | ||
Note Submitter: Stanislav Ssi
----
Contrary to what Dmitry said, with PHP 5.3.5 on my machine this is what happens:
$xml->addChild('msg', 'You & me'); // DOESN'T WORK (not able to
escape the '&')
while
$xml->msg = 'You & me'; // WORKS