comp • gb.web.feed • rss

Rss (gb.web.feed)

This class represents an RSS document. Its properties are those of its single element. It acts like an array of RssItem objects. Add your items in order and then call the ToString() method to get the XML document string.

The Title, Link and Description are necessary. All other properties are optional.

Conforming to the RSS 2.0 specification. You have to know the document structure and terminology of RSS to make use of this component.

This class is creatable.
This class acts like a
Return the RssItem at position Index.
read
/
Replace the RssItem at position Index.
write
array.
This class is
Iterate through all RssItems, in the order they are given in the document.
enumerable
with the FOR EACH keyword.

Properties

Methods
An array of categories for this feed.
Categories  
Description of an associated cloud service.
Cloud  
Copyright notice for the feed content.
Copyright  
Returns the number of RssItems in this document.
Count  
A description of the feed's contents.
Description  
A link to the RSS specification, to inform future generations of what an RSS file is, if they find one.
Docs  
The program which generated the feed.
Generator  
An image associated with the feed.
Image  
The language the feed content is written in. Use one of the defined values.
Language  
The date/timezone of the last change to the feed contents. If unset, defaults to the time the XML document is written in the local timezone.
LastBuild  
The URL to the website corresponding to this feed.
Link  
EMail address of the managing editor.
ManagingEditor  
Publication date/timezone of the feed. E.g. a newspaper with daily publication would change this once a day. If unset, defaults to the time the XML document is written in the local timezone.
Pub  
Rating  
A hint for news aggregators. It gives a number of weekdays (gb.Monday, gb.Tuesday, etc.) when no new content is to be expected in the feed. A client may ignore this setting, but can also use it to save traffic. You may only specify up to 7 skip days.
SkipDays  
A hint for news aggregators. It gives a number of hours in the range of 0 to 23 when no new content is to be expected in the feed. A client may ignore this setting, but can also use it to save traffic. You may only specify up to 24 skip hours.
SkipHours  
Describes a text input box to be displayed with the feed.
TextInput  
The name or title of the feed.
Title  
Ttl  
EMail address of the web master.
WebMaster  
Add an RssItem to the document. If Index is given, the item is inserted at the given position in the array of items. By default it is inserted at the end.
Add  
Clear the Rss object. Sets all properties to Null and clears the item array.
Clear  
Read the RSS document in XML format, given in Data, and fill the properties of this Rss object accordingly.
FromString  
Remove Length-many RssItems from the item array, beginning at position Index. By default Length is 1.
Remove  
Reverse the order of RssItems.
Reverse  
Sort the items by their date. You can pick Mode as gb.Ascent or gb.Descent. The default is descending sort so that the newest items are first in the document.
Sort  
Write this Rss object as an XML document and return its contents.
ToString