|
|
|
|
|
- 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 feed 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.Count >= 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).
Note: It is advisable 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.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|