note 61495 added to function.simplexml-load-file

From: Date: Sun, 05 Feb 2006 17:30:14 +0000
Subject: note 61495 added to function.simplexml-load-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-103040@lists.php.net to get a copy of this message
No problems at all with CDATA: Test.xml: <?xml version="1.0" encoding="iso-8859-1"?> <xml> <cdata><![CDATA[abc<br>abc]]></cdata> </xml> PHP Code: <?php $xml = simplexml_load_file( 'test.xml' ); echo $xml->cdata; ?> Output: > X-Powered-By: PHP/5.1.1 > Content-type: text/html > > abc<br>abc The problem below is probably caused by incorrect syntax. It's "<![CDATA[]]>" instead of "<![CDATA []]>" (note the space). ---- Server IP: 83.137.20.120 Probable Submitter: 84.81.28.190 ---- Manual Page -- http://www.php.net/manual/en/function.simplexml-load-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61495 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61495&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61495&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103040) next »