此代码在IE以外的浏览器上正常工作。IE给出嵌入在PHP中的XML代码错误
echo "
<item>
<link>http://www.example.com/showrssdetails.php?id=".$row[recordid]."</link>
<guid isPermaLink=\"true\">http://www.example.com/showrssdetails.php.php?id=".$row[recordid]."</guid>
<title>".$row[company]."</title>
<description><! [CDATA[".$row[desiredcandidate]."]]></description>
<comments>http://www.example.com/showrssdetails.php.php?id=".$row[recordid]."#Comments</comments>
</item>";
IE给出在第6行错误:
无效的字符文本内容中找到。错误处理资源'http://example.com/job_listing_rssxml.php ...
展我们整个页面 – Lazarus 2009-12-12 15:15:21