|
|
|
|
- Properties specific to rssStream variables
- Functions that use rssStream variables:
rssStream (Type of variable) In french: rssFlux
The rssStream type is used to handle a RSS feed. The stream characteristics can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
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 rssStream variables The following properties can be used to handle a RSS feed: | | | Name | Type used | Effect |
---|
Channel | Array of rssChannel | Used to describe the different RSS channels of the stream. A stream may own several channels. In most cases, a stream owns a single channel.
| Version | Character string | Used to find out and modify the version of the RSS stream. Only the RSS stream 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: | | rssBuildString | Builds the RSS feed and returns the result (in XML format) in a character string. | rssDisplay | Builds a RSS stream and returns the content of the RSS stream to the client. | rssInitialize | Loads a RSS stream in memory. | rssSave | Builds the RSS stream and saves the RSS stream in an XML file. |
Related Examples:
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|