duanfa0072
duanfa0072
2012-08-05 17:59

使用SimpleXML阅读YouTube XML [关闭]

已采纳

I want to read/retrieve some details from a single YouTube video using:

$sxml= simplexml_load_file("http://gdata.youtube.com/feeds/api/videos/gzDS-Kfd5XQ");

How can i read the tags from the XML file like title, description? I search and found a couple of tutorials, but I can't find one that shows how to read specific XML data. Any good tutorial links or examples will be appreciated.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答