I have a XML which is on an external server, recalling this is no problem.
Now the problem is, I want to select a path, without naming it.
So for example:
<data num_results="2"> <node> <raw_text> </raw_text> </node> </data>
And i now recall it like this:
$xml = simplexml_load_file($link); foreach($xml->data->node as $report) { process; }
And i want to recall it like this:
$xml = simplexml_load_file($link); foreach($xml->data->[something without naming it "node"] as $report) { process; }
How do i do this?
Cheers!
No comments:
Post a Comment