|
|
|
|
- Overview
- How to?
- Databinding and RSS feed
WINDEV, WEBDEV and WINDEV Mobile allow you to produce and/or consume an RSS feed (Rapid Simple Syndication). An RSS feed 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 feed is used to display one or more RSS feeds.
To read an RSS feed: - Declare a variable of type rssStream. This variable will contain the information regarding the RSS stream to handle.
- Load the RSS feed 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) - 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 - The content of the RSS feed can be displayed in a table linked by databinding to the rssChannel variable containing the entries of the stream (in our example, MyChannel.Entry).
Remark: It is recommended to use: - FOR EACH loops to read the entries of a channel associated with a stream.
- manual loops using the Count property (can be used on the rssChannel type to get the number of channels and on the rssEntry type to get the number of entries).
Databinding and RSS feed The Databinding is available for the rssXXX variables so that the RSS information can be displayed without programming.
Related Examples:
|
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.
|
|
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.
|
|
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.
|
|
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,...
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|