[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [syndication] Re: Rogue "&"



In article <9q74fs.3vuao9h.1@ID-99504.news.dfncis.de>, Karl Ove
Hufthammer <huftis@tiscali.no> writes
>2001-10-12 15:36:44, Joe Germuska <joe@germuska.com>:
>> Couldn't the XHTML entity modules be added to the root RSS DTD?

>Yes, it can, and that's probably a good idea. (But then we must 
>make the authors reference the DTD, which would probably be as 
>difficult as making them fix their already broken RSS files.)

It already is in the Netscape DTD. And yes, one problem is that many RSS
feeds don't use it. But it's not actually the entities that are the
biggest problem, it's the rogue "&" on it's own.

>2001-10-12 08:58:20, Julian Bond <julian_bond@voidstar.com>:
>> Is Syndic8 an evangelism effort for XML as much as RSS?

>Evangalising for well-formed XML isn't necessary, 
Well it is because so much RSS is broken XML.

>2001-10-12 08:58:20, Julian Bond <julian_bond@voidstar.com>:
>> Well a lot of RSS readers have been built out of simple string
>> manipulation with no awareness of XML at all.

>Also, this means that the RSS readers won't understand correct use 
>of entities
I don't see the connection. You can parse out RSS with simple string
functions. And then convert entities back with separate code. I know of
at least one Slash Clone in PHP that does this.

-- 
Julian Bond    email: julian_bond@voidstar.com
CV/Resume:         http://www.voidstar.com/cv/
WebLog:               http://www.voidstar.com/
HomeURL:      http://www.shockwav.demon.co.uk/ 
M: +44 (0)77 5907 2173  T: +44 (0)192 0412 433
ICQ:33679568 tag:So many words, so little time