Question
Using
WebRss &
TWiki.WebRssBase (adapted from
CreatingRSSFromATwikiPage) to create an syndicate list, I get the following error on the rendered
WebRss page using the rss skin and text/xml content type:
XML Parsing Error: mismatched tag. Expected: </img>.
Location: http://twiki.iwethey.org/twiki/bin/view/Main/WebRss?skin=rss&contenttype=text/xml
Line Number 11, Column 157:<a href="http://twiki.iwethey.org/twiki/bin/view/Main/"> <img width="384" hight="64" src="/twiki/pub/twikiwethey.png" border="0" alt="TWikIWeThey (logo)"></a>
------------------------------------------------------------------------------------------------------------------------------------------------------------^
Or, if the problem hasn't been resolved yet, see it yourself here:
http://twiki.iwethey.org/twiki/bin/view/Main/WebRss?skin=rss&contenttype=text/xml
I've triple-checked the
TWiki.WebRssBase topic, it appears to be right. I'm suspecting the template is whacked, but haven't been able to figure out where. I've downloaded the
view.rss.tmpl from
WikiRssExtension. Just refreshed my local copy, no improvements.
The feed, incidentally, works with the
HeadlinesPlugin, but breaks other RSS clients, e.g.: the
OpenWiki WikiSites syndicate.
- TWiki version: 01 Dec 2001
- Web server: Apache
- Server OS: Linux (Mandrake)
- Web browser: Galeon
- Client OS: Linux (Debian/testing)
--
KarstenSelf - 31 Jul 2002
Answer
Opening the RSS feed in a suitable XML parser, e.g. IE5.5 or Mozilla, should help narrow things down. You need to make sure you have not added any blank lines to
WebRss, by the way.
Also, check
NbspBreaksRssFeed - there is a similar issue with the
™ entity in your RSS feed. Download the latest
TWikiAlphaRelease as it has a fix for that issue.
As for the IMG tag, check the HTML on the page that is the source of that RSS feed entry - it looks incorrect and needs fixing, i.e. the A tag is finished before the enclosed IMG tag. The base HTML must be 100% correct for RSS feeds to work, since XML parsers in RSS tools are much more picky than web browsers, so even if a web page displays OK it may not work when summarised into RSS.
--
RichardDonkin - 31 Jul 2002
That was it. Actually, a linefeed at the end of the topic seemed to be what was breaking things.
Thanks.
--
KarstenSelf - 02 Aug 2002
One thing I wanted to point out. I have v4.2.0 and I was unable to get my RSS feeds to work for some time. I tried multiple searches on this web site as well as others.
- When I viewed the RSS Feed from IE, I got an error about more than one parent.
- For Firefox, I was able to successfully to view and load the RSS but it ALWAYS failed to load in the toolbar.
I found that the
../templates/view.rss.tmpl was causing my issue. Looking at the "XML" source, I saw that the very last line of all my Twiki RSS feeds had:
<p />
Once I removed the last "newline" character from the last line in the "view.rss.tmpl", my RSS started to work as expected. I am on Solaris 9, so I used:
cat <last line of rss tmpl> | tr "\n" " " > last.rss.line; cat <first lines of rss tmpl> last.rss.line > view.rss.tmpl
Thanks for information.
--
AdamRoybal - 03 Oct 2008