PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The rssStream type is used to handle a RSS stream. The characteristics of this stream can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
MyRSSStream is rssStream
MyRSSStream = rssInitialize("http://blogs.webdev.info/rss.awp?blog=technicalsupport", 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 = "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 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.
Notes:
  • The properties followed by a star (*) are mandatory.
  • All the properties found in this list are available in read/write.
  • These properties can be used via one of the following syntaxes:
    • <Variable Name>..<Property Name>
    • <Variable Name>.<Property Name>

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