Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
Rss
RssCategory
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

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 read / write array.

This class is enumerable with the FOR EACH keyword.

Properties
Categories   An array of categories for this feed.
Cloud   Description of an associated cloud service.
Copyright   Copyright notice for the feed content.
Count   Returns the number of RssItems in this document.
Description   A description of the feed's contents.
Docs   A link to the RSS specification, to inform future generations of what an RSS file is, if they find one.
Generator   The program which generated the feed.
Image   An image associated with the feed.
Language   The language the feed content is written in. Use one of the defined values.
LastBuild   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.
Link   The URL to the website corresponding to this feed.
ManagingEditor   EMail address of the managing editor.
Pub   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.
Rating  
SkipDays   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.
SkipHours   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.
TextInput   Describes a text input box to be displayed with the feed.
Title   The name or title of the feed.
Ttl  
WebMaster   EMail address of the web master.

Methods
Add   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.
Clear   Clear the Rss object. Sets all properties to Null and clears the item array.
FromString   Read the RSS document in XML format, given in Data, and fill the properties of this Rss object accordingly.
Remove   Remove Length-many RssItems from the item array, beginning at position Index. By default Length is 1.
Reverse   Reverse the order of RssItems.
Sort   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.
ToString   Write this Rss object as an XML document and return its contents.