I'd have the following XML structure:
<entry>
<id im:id="595831580">blabla</id>
</entry>
Now I want to parse the id 595831580.
I tried:
$idAtt = $xml->entry->id;
$id = $idAtt->attributes();
$id2 = $id['im:id'];
But this does not work :(
How can I fix it?