Hey php newb here;
Trying to parse XML document. I've commented out some failed ideas.
I see the doc in the var dump. Thanks for any info.
<?php
$nm = "log";
$log = fopen($nm, "a");
fwrite($log, "wtf.php\n");
$request_url = "simp.xml";
$xml = simplexml_load_file($request_url) or die("feed not loading");
//$rect1 = $xml->hello[0]->x;
//$rect1 = $xml->the->hello[0]->x;
$rect1 = $xml->the->hello[0]['x'];
fwrite($log, $rect1);
var_dump($xml);
?>
<?xml version="1.0" encoding="utf-8"?>
<the>
<hello x="world" y="10" />
<hello x="moon" y="50" />
</the>