<key><name>testing name</name><result>success</result></key>
My PHP code:
$doc = new DOMDocument();
$doc->load( 'key.xml' );
$result = $doc->getElementsByTagName( "result" );
echo $result->item(0)->nodeValue;
I just need to extract the text value of "result", but it doesn't output that to me. Could you help me please?