Help / WLanguage / WLanguage functions / Communication / RSS Stream functions
  • Properties specific to rssStream variables
  • Functions that use rssStream variables:
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
The rssStream type is used to handle a RSS feed. The stream characteristics can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MyRSSStream is rssStream
MyRSSStream = rssInitialize("", fromURL)
MyStream is rssStream
MyChannel is rssChannel
MyEntry is rssEntry
MyPath is string
// Characteristics of channel
MyChannel.Title = "My site"
MyChannel.Description = "Example of RSS 2.0 stream"
MyChannel.UpdateDate = DateSys() + TimeSys()
MyChannel.Link = ""
// Characteristics of entries of channel 1
MyEntry.Author = ""
MyEntry.Description = "First news"
MyEntry.Title = "News #1"
// Adds the entry into the channel
Add(MyChannel.Entry, MyEntry)
// Adds the channel into the stream
Add(MyStream.Channel, MyChannel)
// Saves the stream in a file
MyPath = CompleteDir(fCurrentDir()) + "Rss.xml"
rssSave(MyStream, MyPath)
// Displays the XML file of stream
IF ShellExecute(MyPath) = False THEN
Error("ShellExecute('" + MyPath + "'). '" + ErrorInfo() + "'")

Properties specific to rssStream variables

The following properties can be used to handle a RSS feed:
NameType usedEffect
ChannelArray of rssChannelUsed to describe the different RSS channels of the stream. A stream may own several channels. In most cases, a stream owns a single channel.
VersionCharacter stringUsed to find out and modify the version of the RSS stream. Only the RSS stream corresponding to the version "2.0" is supported.

  • The properties followed by a star (*) are mandatory.
  • All the properties found in this list are available in read/write.

Functions that use rssStream variables:

rssBuildStringBuilds the RSS feed and returns the result (in XML format) in a character string.
rssDisplayBuilds a RSS stream and returns the content of the RSS stream to the client.
rssInitializeLoads a RSS stream in memory.
rssSaveBuilds the RSS stream and saves the RSS stream in an XML file.
Related Examples:
WW_RSS_Stream Training (WEBDEV): WW_RSS_Stream
[ + ] This example explains how to read and display a RSS stream in a WEBDEV page via the RSS type and via the WLanguage functions for handling RSS.
A reusable control template is used to display the RSS data.
Minimum version required
  • Version 14
This page is also available for…
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help