note 104304 deleted from xmlreader.readstring by danbrown
| From: | danbrown@php.net | Date: | Wed, 08 Jun 2011 14:34:37 +0000 |
| Subject: | note 104304 deleted from xmlreader.readstring by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180333@lists.php.net to get a copy of this message | ||
Note Submitter: Lea Hayes
----
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);