【问题标题】:What is wrong with this rss feed?这个 RSS 提要有什么问题?
【发布时间】:2014-08-09 10:24:03
【问题描述】:

这是一个 RSS 源:

<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0"><channel><title>Porthmadog Tide Times</title><link>http://port-tides.com</link><description>Free tidal predictions for Porthmadog</description><item><title>Porthmadog Tide Times</title><link>http://port-tides.com</link><description>Free tidal predictions for Porthmadog</description><content:encoded><![CDATA[<html><head><style>h3{    padding: 0px;    margin: 0px;}</style></head><body><center><h3>Today</h3><p>07:54 (4.60m)<br/>20:19 (5.00m)<p><h3>Sunday</h3><p>08:45 (5.00m)<br/>21:07 (5.40m)<p><h3>Monday</h3><p>09:33 (5.30m)<br/>21:53 (5.70m)<p><h3>Tuesday</h3><p>10:17 (5.50m)<br/>22:38 (5.80m)<p><h3>Wednesday</h3><p>10:59 (5.50m)<br/>23:21 (5.70m)<p><h3>Thursday</h3><p>11:45 (5.30m)<br/><p><h3>Friday</h3><p>00:09 (5.40m)<br/>12:31 (5.00m)<p></center></body></html>]></content><link>http://port-tides.com</link></channel></rss>

http://validator.w3.org/feed/ 的代码验证器是这样说的:

This feed does not validate. line 1, column 327: XML parsing error: &lt;unknown&gt;:1:341: unbound prefix

【问题讨论】:

    标签: xml rss syntax-error validation


    【解决方案1】:

    你有&lt;content:encoded&gt;,但你在任何地方都没有xmlns:content="http://some.namespace.example.com"

    【讨论】:

      猜你喜欢
      • 2011-09-03
      • 1970-01-01
      • 2015-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-22
      • 1970-01-01
      相关资源
      最近更新 更多