note 104305 added to xmlreader.readstring

From: Date: Tue, 07 Jun 2011 20:51:29 +0000
Subject: note 104305 added to xmlreader.readstring
Groups: php.notes 
Request: Send a blank email to php-notes+get-180319@lists.php.net to get a copy of this message
I would like to reiterate that this does not work when compiled with versions of libxml lower than 20620. I found that it just presents a blank page. $string = $reader->readString(); I worked around this issue by adding the following helper function: function read_string($reader) { $node = $reader->expand(); return $node->textContent; } And then using: $string = read_string($reader); ---- Server IP: 69.147.83.197 Probable Submitter: 92.232.71.252 ---- Manual Page -- http://www.php.net/manual/en/xmlreader.readstring.php Edit -- https://master.php.net/note/edit/104305 Del: integrated -- https://master.php.net/note/delete/104305/integrated Del: useless -- https://master.php.net/note/delete/104305/useless Del: bad code -- https://master.php.net/note/delete/104305/bad+code Del: spam -- https://master.php.net/note/delete/104305/spam Del: non-english -- https://master.php.net/note/delete/104305/non-english Del: in docs -- https://master.php.net/note/delete/104305/in+docs Del: other reasons-- https://master.php.net/note/delete/104305 Reject -- https://master.php.net/note/reject/104305 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180319) next »