note 104305 modified in xmlreader.readstring by danbrown

From: Date: Wed, 08 Jun 2011 14:35:10 +0000
Subject: note 104305 modified in xmlreader.readstring by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180334@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. <?php $string = $reader->readString(); ?> I worked around this issue by adding the following helper function: <?php function read_string($reader) { $node = $reader->expand(); return $node->textContent; } ?> And then using: <?php $string = read_string($reader); ?> --was-- 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); http://php.net/manual/en/xmlreader.readstring.php

« previous php.notes (#180334) next »