Puedes buscar sobre "atributtes simplexml". En Simplexml se pueden tratar como array o usar el método attributes.
Aquí salen ejemplos:
http://php.net/manual/es/simplexmlel...attributes.php
Ejemplo básico:
Código PHP:
Ver original$xml = '<items><item name="Tabla torcida" count="3" id="59" cat="Rsc" img="wood2" broken="0"/>
</items>';
$sxe = new SimpleXMLElement($xml);
echo $sxe->item['name'];