|
|
|
|
|
- Properties specific to rssStream variables
- Functions that use rssStream variables:
rssStream (Variable type) 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. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MonFluxRSS is rssStream
MonFluxRSS = rssInitialize("http://blogs.webdev.info/rss.awp?blog=supporttechnique", fromURL)
MonFlux is rssStream
MonCanal is rssChannel
MonEntrée is rssEntry
MonChemin is string
MonCanal.Title = "Mon site"
MonCanal.Description = "Exemple de flux RSS 2.0"
MonCanal.UpdateDate = DateSys() + TimeSys()
MonCanal.Link = "http://www.example.org"
MonEntrée.Author = "pcsoft@pcsoft.fr"
MonEntrée.Description = "Première actualité"
MonEntrée.Title = "Actualité N°1"
Add(MonCanal.Entry, MonEntrée)
Add(MonFlux.Channel, MonCanal)
MonChemin = CompleteDir(fCurrentDir()) + "Rss.xml"
rssSave(MonFlux, MonChemin)
IF ShellExecute(MonChemin) = False THEN
Error("LanceAppliAssociée('" + MonChemin + "'). '" + 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 | Allows you to view or modify the version of the RSS feed. Only the RSS feed 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 feed and returns the content of the RSS feed to the client. | rssInitialize | Loads a RSS feed in memory. | rssSave | Builds the RSS feed and saves the RSS feed 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|