PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of rssChannel variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The rssChannel type is used to handle an RSS channel. The characteristics of this channel can be defined and modified by several WLanguage properties.
This type of variable is used by the rssStream type.
Notes:
  • In most cases, the declaration of an rssStream variable is not required. Indeed, the properties of rssStream type are used to directly handle the properties of rssChannel type (especially the ..Channel property).
  • See Declaring a variable for more details.
Versions 17 and later
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This type of variable is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This type of variable is now available in Windows Store apps mode.
Universal Windows 10 App This type of variable is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
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 ShellExecute(MyPath) = False THEN
Error("ShellExecute('" + MyPath + "'). '" + ErrorInfo() + "'")
END
Remarks

Properties specific to the description of rssChannel variables

The following properties can be used to handle an RSS channel:
NameType usedEffect
CategoryrssCategoryCategory to which the channel belongs. Can be used to aggregate the elements about the same subject.
CloudrssCloudDescribes the Web service that is used to subscribe to the notifications of modifications made to the channel.
CopyrightCharacter stringCopyright for the content of channel.
UpdateDateDateTimeDate of last update for the content of channel.
The dates read are automatically converted into UTC date. The value written in the channel is always in UTC.
PublicationDateDateTimePublication date of channel content (which means date of last access to the channel content).
The dates read are automatically converted into UTC date. The value written in the channel is always in UTC.
Description (*)Character stringDescription of channel.
In most cases, corresponds to a sentence that describes the information given by the channel.
DocsCharacter stringDescription of format used.
TimeToLiveDuration or IntegerValidity duration of channel.
This duration is an indication for the user of the channel about the duration during which the channel can be put in cache. The value in the channel is rounded to the minute.
This property can correspond to:
  • an integer corresponding to the number of minutes,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (5 min for example).
    New in version 23
    the direct indication of duration (5 min for example).
    the direct indication of duration (5 min for example).
Entry (*)Array of rssEntryArray of channel entries.
GeneratorCharacter stringName of the program used to generate the channel.
ImagerssImageDescription of the image that describes the channel.
LanguageCharacter stringLanguage used to write the title, the description and the articles of the channel. Corresponds to a string in xx-yy or xx_yy format.
  • xx is a language abbreviation in ISO639 format.
  • yy is a country code in ISO3166 format.
    Example: fr_FR, en_GB, en_US, etc.

The value of this property can be retrieved and modified.
Link (*)Character stringURL used to read the channel.
The value of this property can be retrieved and modified.
ManagingEditorCharacter stringEmail address of the editorial manager of the channel.
The value of this property can be retrieved and modified.
TextInputrssTextInputUsed to describe an input area to get return about the stream.
This property is seldom used and it is sometimes ignored.
Title (*)Character stringTitle of the channel.
The value of this property can be retrieved and modified.
WebmasterCharacter stringEmail address of the technical manager of the channel.
The value of this property can be retrieved and modified.
Notes:
  • The properties followed by (*) are mandatory.
  • These properties can be used via one of the following syntaxes:
    • <Variable Name>..<Property Name>
    • <Variable Name>.<Property Name>
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 required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment