note 108143 added to book.simplexml

From: Date: Sun, 01 Apr 2012 12:00:36 +0000
Subject: note 108143 added to book.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-186933@lists.php.net to get a copy of this message
In many situations, the methods of supporting CDATA in comments above may inappropriate (especially if an external library is using simplexml). Instead, you may simply cast CDATA elements to a string, such as: print (string)$xml->cdataelement or (string)$xml->{'cdataelement'} In my case, it eliminated the need for me to edit an external library file every time an upgrade for the file was released. ---- Server IP: 69.147.83.197 Probable Submitter: 220.239.38.125 ---- Manual Page -- http://www.php.net/manual/en/book.simplexml.php Edit -- https://master.php.net/note/edit/108143 Del: integrated -- https://master.php.net/note/delete/108143/integrated Del: useless -- https://master.php.net/note/delete/108143/useless Del: bad code -- https://master.php.net/note/delete/108143/bad+code Del: spam -- https://master.php.net/note/delete/108143/spam Del: non-english -- https://master.php.net/note/delete/108143/non-english Del: in docs -- https://master.php.net/note/delete/108143/in+docs Del: other reasons-- https://master.php.net/note/delete/108143 Reject -- https://master.php.net/note/reject/108143 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186933) next »