I want to load all xml values into array
for example, i've the following xml
<rating>
<kp_rating num_vote="14008">8.665</kp_rating>
<imdb_rating num_vote="94758">8.8</imdb_rating>
</rating>
using Simplexml_load_string i'm getting only
SimpleXMLElement Object ( [kp_rating] => 8.665 [imdb_rating] => 8.8 )
How can I get in addition the num_vote
?