XML Parsing Error: no element found
Location: http://localhost/rss/
Line Number 1, Column 1:
然而,当我将XML粘贴到http://validator.w3.org/feed/check.cgi,它说没有格式错误。RSS订阅XML错误 - 任何错误?
完整的代码以低于:
的index.php
<?php
header("Content-Type: application/xml; charset=ISO-8859-1");
$details = '<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>hehe</title>
<link>http://www.google.com</link>
<description>gaga</description>
</channel>
</rss>
';
echo $details;
?>
我在我的localhost pc,firefox中运行它...但它出来错误。 – 2009-09-28 10:09:39