PHP代码dom获取XML的简单例子
dom获取XML的简单例子
[php] load('http://www.dayanmei.com/feed.php'); $topic = $doc->getElementsByTagName('title'); $link = $doc->getElementsByTagName('link'); $da = $doc->getElementsByTagName('pubDate'); for($i=1;$i<=10;$i++){ echo "
PHP代码dom获取XML的简单例子