note 110860 added to book.simplexml

From: Date: Sun, 16 Dec 2012 00:42:52 +0000
Subject: note 110860 added to book.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-192549@lists.php.net to get a copy of this message
Observed in PHP 5.3.19 JSON implements data types that include NULL, TRUE, FALSE, INT and FLOAT. It appears that these types are not implemented in SimpleXML. The JSON_Decode() function returns an object instance of stdClass which supports these data types. However objects of SimpleXMLElement do not. The effect of this difference is that you cannot necessarily use a conversion of a stdClass object into a SimpleXMLElement, and so the AsXML() method is out of play. ---- Server IP: 192.41.42.26 Probable Submitter: 98.169.50.31 ---- Manual Page -- http://php.net/manual/en/book.simplexml.php Edit -- https://master.php.net/note/edit/110860 Del: integrated -- https://master.php.net/note/delete/110860/integrated Del: useless -- https://master.php.net/note/delete/110860/useless Del: bad code -- https://master.php.net/note/delete/110860/bad+code Del: spam -- https://master.php.net/note/delete/110860/spam Del: non-english -- https://master.php.net/note/delete/110860/non-english Del: in docs -- https://master.php.net/note/delete/110860/in+docs Del: other reasons-- https://master.php.net/note/delete/110860 Reject -- https://master.php.net/note/reject/110860 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192549) next »