ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / RSS Stream functions
  • Properties specific to rssEntry variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The rssEntry type is used to handle a RSS feed entry. The RSS feed is described via the rssStream type.
The characteristics of a stream entry can be defined and changed by the WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
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 = "http://www.example.org"
// Characteristics of entries of channel 1
MyEntry.Author = "pcsoft@pcsoft.fr"
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 NOT ShellExecute(MyPath) THEN
Error("ShellExecute('" + MyPath + "'). '" + ErrorInfo() + "'")
END
Remarks

Properties specific to rssEntry variables

The following properties can be used to handle a RSS feed entry via the rssEntry variable:
PropertyType usedEffect
AuthorCharacter stringEmail address of the author of the entry.
CategoryrssCategoryCategory to which the entry belongs. Can be used to aggregate the elements about the same subject.
CommentsCharacter stringURL of the page containing the comments about the entry.
PublicationDateDateTimePublication date of the content of the entry.
The dates read are automatically converted into UTC date. The value written in the channel is always in UTC.
Description (*)Character stringContent of the entry.
The HTML tags are allowed.
EnclosurerssEnclosureDescribes an external document (multimedia in most cases) associated with an entry.
IdentifierrssIdentifierIdentifier (potentially unique and permanent) of the entry. Often used to identify the entries already read/processed.
LinkCharacter stringExternal link toward the element described by the entry.
SourcerssSourceDescription of the source publication stream of the entry. In case of aggregate, this value differs from the URL of the channel that currently contains the entry.
Title (*)Character stringTitle of the channel.
The value of this property can be retrieved and modified.

Remarks:
  • The properties followed by a star (*) are mandatory.
  • All the properties found in this list are available in read/write.
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…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help