PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of rssStream variables
  • Functions that use the rssStream 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 rssStream type is used to handle a RSS stream. The characteristics of this flow can be defined and modified 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.
Example
MonFluxRSS is rssStream
MonFluxRSS = rssInitialize("http://blogs.webdev.info/rss.awp?blog=supporttechnique", fromURL)
MonFlux is rssStream
MonCanal is rssChannel
MonEntrée is rssEntry
MonChemin is string
 
// Renseignements du canal
MonCanal.Title = "Mon site"
MonCanal.Description = "Exemple de flux RSS 2.0"
MonCanal.UpdateDate = DateSys() + TimeSys()
MonCanal.Link = "http://www.example.org"
 
// Renseignements des entrées du canal 1
MonEntrée.Author = "pcsoft@pcsoft.fr"
MonEntrée.Description = "Première actualité"
MonEntrée.Title = "Actualité N°1"
 
// Ajoute l'entrée dans le canal
Add(MonCanal.Entry, MonEntrée)
 
// Ajoute le canal dans le flux
Add(MonFlux.Channel, MonCanal)
 
// Sauve le flux dans un fichier
MonChemin = CompleteDir(fCurrentDir()) + "Rss.xml"
rssSave(MonFlux, MonChemin)
 
// Affiche le fichier XML du flux
IF ShellExecute(MonChemin) = False THEN
Error("LanceAppliAssociée('" + MonChemin + "'). '" + ErrorInfo() + "'")
END
Remarks

Properties specific to the description of rssStream variables

The following properties can be used to handle a RSS stream:
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.

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

Functions that use the rssStream variables:

Versions 14 and later
rssBuildString
New in version 14
rssBuildString
rssBuildString
Builds the RSS stream and returns the result (in XML format) in a character string.
Versions 14 and later
rssDisplay
New in version 14
rssDisplay
rssDisplay
Builds a RSS stream and returns the content of RSS stream to the client.
Versions 14 and later
rssInitialize
New in version 14
rssInitialize
rssInitialize
Loads a RSS stream in memory.
Versions 14 and later
rssSave
New in version 14
rssSave
rssSave
Builds 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…
Comments
Click [Add] to post a comment