尝试使用Dreamweaver和PHP进行开发。
在实际网站上,我突然发现了这个错误:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>
ABCDED
</title>
<cf:treatAs xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">list</cf:treatAs>
<link>http://events.sjsu.edu/default.aspx</link>
<description>RSS Feed ABCD Events Calendar</description>
</channel>
</rss>
答案 0 :(得分:0)
实际上,是否正在将XML文件回显到PHP页面中?
$xml = simplexml_load_file('URL');
foreach ($xml->channel->channel as $value){
$var1 = $value->link;
$var2 = $value->description;
}
echo $var1."<br>".$var2;
在php中显示。
希望它有效!