PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of rssEntry variables
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
The rssEntry type is used to handle a RSS stream entry. The RSS stream is described via the rssStream type.
The characteristics of a stream entry can be defined and modified by the WLanguage properties.
Note: See Declaring a variable for more details.
Versions 17 and later
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This type of variable is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This type of variable is now available in Windows Store apps mode.
Universal Windows 10 App This type of variable is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available in Universal Windows 10 App mode.
Example
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 not ShellExecute(MyPath) THEN
Error("ShellExecute('" + MyPath + "'). '" + ErrorInfo() + "'")
END
Remarks

Properties specific to the description of rssEntry variables

The following properties can be used to handle a RSS stream entry via the rssEntry variable:
PropertyType usedEffect
AuthorCharacter stringEmail address of the author of the entry.
CategoryrssCategoryCategory to which the entry belongs. Can be used to aggregate the elements about the same subject.
CommentsCharacter stringURL of the page containing the comments about the entry.
PublicationDateDateTimePublication date of the content of the entry.
The dates read are automatically converted into UTC date. The value written in the channel is always in UTC.
Description (*)Character stringContent of the entry.
The HTML tags are allowed.
EnclosurerssEnclosureDescribes an external document (multimedia in most cases) associated with an entry.
IdentifierrssIdentifierIdentifier (potentially unique and permanent) of the entry. Often used to identify the entries already read/processed.
LinkCharacter stringExternal link toward the element described by the entry.
SourcerssSourceDescription of the source publication stream of the entry. In case of aggregate, this value differs from the URL of the channel that currently contains the entry.
Title (*)Character stringTitle of the channel.
The value of this property can be retrieved and modified.
Notes:
  • The properties followed by a star (*) are mandatory.
  • All the properties found in this list are available in read/write.
  • These properties can be used via one of the following syntaxes:
    • <Variable Name>..<Property Name>
    • <Variable Name>.<Property Name>
Related Examples:
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.
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment