【发布时间】:2011-09-09 09:49:49
【问题描述】:
我现在正在这样做
<?php
$xml = simplexml_load_file('www.tompeters.com/atom.xml');
print_r($xml);
?>
但它返回此错误
警告:simplexml_load_file() [function.simplexml-load-file]:I/O 警告:未能加载外部实体“www.tompeters.com/atom.xml”
我认为这是因为提要不是有效的 XML? 那么如何验证它以便解析提要呢?
谢谢
【问题讨论】: