Hi,
I have a small question regarding simplexml in php5. Imagine following code
<?php
$test = <<<XML
<?xml version="1.0" encoding="iso-8859-1"?>
<a>
<b>
<c>
text
<d/>
</c>
</b>
</a>
XML;
$xml = simplexml_load_string( $test );
?>
What I would like to get, is the 'text' value. I tried
print_r($xml->b->c->nodeValue);
print_r($xml->b->c);
But both don't give me the required value :bemused:
Any idea?
Best regards,
Dexter