Welcome to WebmasterWorld Guest from 54.162.157.249

Forum Moderators: bill & werty

Message Too Old, No Replies

How t o add extended element to RSS 2.0

     
3:15 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



We have short and long descriptions. Is there a way to add an extended element for the long description?
3:24 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



I mean to add an extra element like 'description' for each item.
5:47 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



The only elements of the <item> are:

title: The title of the item.
link: The URL of the item.
description: The item synopsis.
author: Email address of the author of the item.
category: Includes the item in one or more categories.
comments: URL of a page for comments relating to the item.
enclosure: Describes a media object that is attached to the item.
guid: A string that uniquely identifies the item.
pubDate: Indicates when the item was published.
source: The RSS channel that the item came from.

The idea of the RSS feed is to show a description and then take the user to the content. I am not sure exactly how two descriptions would be useful but that doesn't mean that I know everything.

7:16 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



Found a solution:
<rss version="2.0" xmlns:ExtraField="http://www.mydomain.com/ExtraField#">
...
<item>
<title>..</title>
<pubDate>..</pubDate>
<description>..</description>
<ExtraField:LongDesc>....</ExtraField:LongDesc>
..
</item>

credit to Extending RSS 2.0 With Namespaces [disobey.com]

11:35 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



Will be interesting to see how this works. Any chance of stickying me the URL when you have it set up?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month