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