ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / RSS Stream functions
  • Properties specific to rssStream variables
  • Functions that use rssStream variables:
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The rssStream type is used to handle a RSS feed. The stream characteristics can be defined and changed using different WLanguage properties.
Note: 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 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 stringAllows you to view or modify the version of the RSS feed. Only the RSS feed 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 rssStream variables:

rssBuildStringBuilds the RSS feed and returns the result (in XML format) in a character string.
rssDisplayBuilds a RSS feed and returns the content of the RSS feed to the client.
rssInitializeLoads a RSS feed in memory.
rssSaveBuilds the RSS feed and saves the RSS feed 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

Last update: 03/28/2025

Send a report | Local help