News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

RSS bug

Started by SparkieGeek, February 05, 2004, 01:39:21 PM

Previous topic - Next topic

SparkieGeek

http://www.simplemachines.org/community/index.php?action=.xml&type=rss

Errors in Win/IE6 and Moz FB 0.7+

QuoteXML Parsing Error: undefined entity
Location: http://www.simplemachines.org/community/index.php?action=.xml&type=rss
Line Number 72, Column 12:         <author>&shy; &ordf;cf</author>

The hint arrow points at the &shy; ...

[Unknown]

Well, the problem is xml doesn't use any predefined entities... (except the four main ones.) know of any DTDs I could use to get them?

-[Unknown]

SparkieGeek

Well the way I see it, you'd have to write a DTD which cross-references &shy; with something like ALT text...

[Unknown]

&shy; is just another standard HTML entity.  I don't see why I should have to write a DTD for standard entities... it's not something the feed is doing, is part of the name of the member. (if you look at the source.)

-[Unknown]

SparkieGeek

#4
Quote from: [Unknown] on February 05, 2004, 02:15:07 PM
&shy; is just another standard HTML entity.  I don't see why I should have to write a DTD for standard entities... it's not something the feed is doing, is part of the name of the member. (if you look at the source.)

-[Unknown]

Sorry got confused there. I didn't realise what was going on, cos I couldn't view the source properly.

OK so &shy; is an entity in HTML, but isn't included in the XML standard. The way i see it you have two choices:

1. Switch the HTML entities that aren't in XML (here's a list of ones that are) to there ASCII/Unicode equivalents (look down the bottom of the page)
2. Find or write a DOCTYPE to do the same thing...

Should RSS2 have a DOCTYPE? I'm not up to scratch on these things

SparkieGeek

I've looked around, and found these which might be of use...

Latin-1, Symbol and Special

Advertisement: