Hello,

I've recently become interested in hosting an RSS feed script generator on
my website, and was able to make one that allows people to generate the
script using any RSS feed, and then stick it on their site, and display the
info however desired based on the config. You can see what it looks like at
http://gutterstar.net/rss.php . My aim was to allow for full control over
appearance and layout for best integration with any RSS feed url by the end
user.

I've been noticing some strange behavior with some RSS feed builders though,
that the script doesn't appear to recognize, and I don't know if this is due
to a particular method for building RSS feeds, or is simply a fluke in the
RSS XML builder. It could also be that, due to my being blind, I am simply
not seeing the behavior outright... But I doubt this, since the HTML
principles appear to hold.

I was generating my own XML feed ( http://gutterstar.net/books/xml.rss )
using the program RSSBuilder (
http://home.hetnet.nl/~bsoft/rssbuilder/index.htm ), and the program would
add HTML markup within the Description tag like so...

<item>

<title>Woken Furies, by Richard K. Morgan</title>

<pubDate>Mon, 28 May 2007 15:40:52 GMT</pubDate>

<description><![CDATA[Richard K. Morgan has received widespread praise for
his astounding twenty-fifth-century novels featuring Takeshi Kovacs, and has
established a growing legion of fans. Mixing classic noir sensibilities with
a searing futuristic vision of an age when death is nearly meaningless,
Morgan returns to his saga of betrayal, mystery, and revenge, as Takeshi
Kovacs, in one fatal moment, joins forces with a mysterious woman who may
have the power to shatter Harlan's World forever. Once a gang member, then a
marine, then a galaxy-hopping Envoy trained to wreak slaughter and
suppression across the stars, a bleeding, wounded Kovacs was chilling out in
a New Hokkaido bar when some so-called holy men descended on a slim beauty
with tangled, hyperwired hair. An act of quixotic chivalry later and Kovacs
was in deep: mixed up with a woman with two names, many powers, and one
explosive history. In a world where the real and virtual are one and the
same and the dead can come back to life, the damsel in distress may be none
other than the infamous Quellcrist Falconer, the vaporized symbol of a
freedom now gone from Harlan's World. Kovacs can deal with the madness of
AI. He can do his part in a battle against biomachines gone wild, search for
a three-centuries-old missing weapons system, and live with a blood feud
with the yakuza, and even with the betrayal of people he once trusted. But
when his relationship with "the" Falconer brings him an enemy specially
designed to destroy him, he knows it's time to be afraid.

After all, the guy sent to kill him is himself: but younger, stronger, and
straight out of hell. Wild, provocative, and riveting, Woken Furies is a
full-bore science fiction spectacular of the highest order -- from one of
the most original and spellbinding storytellers at work
today.]]></description>

<link>http://gutterstar.net/streaming/sm1.php</link>

</item>


As you can see, the Description tag text is surrounded by the following code
syntax:  <!  DescText  >

When I display this feed using my script, the XML parser automatically
filters out the HTML to get the inner text for display. However, since the
syntax above is remarkably similar to the HTML commenting syntax of:  <!--
Comments  -->
This inner text is automatically filtered as invalid HTML. As a result, in
order to get the feed to view properly, I have to cut all of this out before
posting the feed.

This worries me, since I don't know if this use of the <! text > is part of
some new RSS format, and if so, it essentially negates all backwards
compatibility with current XML parsers.

Does anyone know of any PHP or JavaScript libraries or classes that are
designed to cope with this particular syntax, or whether or not I need to
even be concerned with it?

Any suggestions would be appreciated.

Thank you, and best wishes,

Bryan Garaventa






If you're getting "too much mail" then send a message to:
[EMAIL PROTECTED]
(this will tell it to stop sending you mail)

To change your membership use THIS WEB PAGE: 
http://finance.groups.yahoo.com/group/syndic8/join
(here you can set your mail to digest, no mail or LEAVE the list)

To find more info about Syndicated XML newsfeeds visit http://www.syndic8.com/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/syndic8/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/syndic8/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to