XML : Access xml object

I'm using YouTube API. I got following result from API :

  SimpleXMLElement Object  (      [@attributes] => Array          (              [rel] => alternate              [href] => http://www.youtube.com/watch?v=blabla          )    )    

I'm confuse with this object. I want to access @attributes. How can i do it?

No comments:

Post a Comment