【发布时间】:2013-02-24 02:01:04
【问题描述】:
XML 文件:
<urlset>
<url>
<loc>http://example.com/.../</loc>
<lastmod>0000-00-00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>http://example.com/...</loc>
<lastmod>0000-00-00</lastmod>
<priority>0</priority>
</url>
</urlset>
如何获取到 xml 的链接列表? (谷歌翻译)
foreach ($html->find('?????') as $element) {
echo $element->src;
}
【问题讨论】:
-
到 XML ???所以你想解析 XML 文件?或者你尝试什么。
标签: php html dom xml-parsing