note 103351 added to ref.simplexml

From: Date: Fri, 08 Apr 2011 19:54:02 +0000
Subject: note 103351 added to ref.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-178645@lists.php.net to get a copy of this message
If you are having trouble accessing CDATA in your simplexml document, you don't need to str_replace/preg_replace the CDATA out before loading it with simplexml. You can do this instead, and all your CDATA contents will be merged into the element contents as strings. $xml = simplexml_load_file($xmlfile, 'SimpleXMLElement', LIBXML_NOCDATA); ---- Server IP: 69.147.83.197 Probable Submitter: 64.61.10.68 ---- Manual Page -- http://www.php.net/manual/en/ref.simplexml.php Edit -- https://master.php.net/note/edit/103351 Del: integrated -- https://master.php.net/note/delete/103351/integrated Del: useless -- https://master.php.net/note/delete/103351/useless Del: bad code -- https://master.php.net/note/delete/103351/bad+code Del: spam -- https://master.php.net/note/delete/103351/spam Del: non-english -- https://master.php.net/note/delete/103351/non-english Del: in docs -- https://master.php.net/note/delete/103351/in+docs Del: other reasons-- https://master.php.net/note/delete/103351 Reject -- https://master.php.net/note/reject/103351 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178645) next »