PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Databinding and RSS stream
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
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to produce and/or consume an RSS stream (Rapid Simple Syndication).
An RSS stream is used to produce (make available) a data stream in standard format. This data stream can be read (consumed) by an application.
A reader of RSS stream is used to display one or more RSS streams.
Versions 17 and later
iPhone/iPad This feature is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This feature is now available for the iPhone/iPad applications.
iPhone/iPad This feature is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This feature is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This feature is now available in Windows Store apps mode.
Universal Windows 10 App This feature is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
How to proceed?
To read an RSS stream:
  1. Declare an rssStream variable. This variable will contain the information regarding the RSS stream to handle.
  2. Load the RSS stream with rssInitialize. The RSS Stream variable is initialized with the specified stream.
    MyRSSStream is rssStream
    MyRSSStream = rssInitialize("http://blogs.webdev.info/rss.awp?blog=technicalsupport", fromURL)
  3. Check whether the channel of the stream is valid and load it. For example:
    IF MyRSSStream..Channel..Occurrence >= 1 THEN
    MyChannel is rssChannel
    MyChannel = MyRSSStream..Channel[1]
    ...
    END
  4. The content of the RSS stream can be displayed in a table linked by databinding to the rssChannel variable containing the entries of the stream (in our example, MyChannel.Entry).
Note: We advise you to use:
  • FOR EACH loops to read the entries of a channel associated with a stream.
  • manual loops that use ..Occurrence (can be used on the rssChannel type to find out the number of channels and on the rssEntry type to find out the number of entries).

Databinding and RSS stream

The Databinding is available for the rssXXX variables so that the RSS information can be displayed without programming.
Related Examples:
WD RSS Reader Complete examples (WINDEV): WD RSS Reader
[ + ] WD RSS Reader is a simplified example of RSS reader.
Among the available features:
- importing an OPML file / exporting streams into an OPML file,
- arranging RSS streams in folders,
- automatic update,
- 2 display modes of posts,
- "standby" folder containing all the "not read", "favorites", "today", "yesterday" posts.
WM RSS Reader Cross-platform examples (WINDEV Mobile): WM RSS Reader
[ + ] This example is a reader of RSS stream for the Android and iOS devices. This application allows you to follow the features of your favorite streams. This reader supports the images containing a post as well as the links toward an external site. Furthermore, it also included a system for managing the favorites.
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.
The RSS functions Unit examples (WINDEV): The RSS functions
[ + ] Using the WLanguage RSS functions.
These functions are used to read and create a stream.
These functions can be handled by specific types of variables: rssStream, rssChannel,...
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment