ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / RSS Stream functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Loads a RSS feed in memory.
Example
MyRSSStream is rssStream
MyRSSStream = rssInitialize("http://blogs.webdev.info/rss.awp?blog=technicalsupport", fromURL)
Syntax
<Result> = rssInitialize(<Source of RSS Stream> [, <Type of source>])
<Result>: rssStream variable
rssStream variable containing the characteristics of the specified RSS feed. If the initialization of the stream fails, the stream is empty and ErrorInfo returns more details about the error.
<Source of RSS Stream>: Character string
Source of the RSS feed used for the initialization. This parameter can correspond to:
  • An Ansi character string or a buffer containing the content of the RSS feed. In this case, <Type of Source> must correspond to the fromString constant.
  • A character string containing the full path of an XML file. This file must be accessible from the current computer. In this case, <Type of Source> must correspond to the fromFile constant.
  • A character string containing the URL address. The content of the RSS feed is retrieved from this URL. In this case, <Type of Source> must correspond to the fromURL constant.
<Type of source>: Optional Integer constant
Indicates the source of the RSS feed to load.
fromFileThe RSS stream to load is contained in a file.
fromStringThe RSS stream to load is contained in an Ansi character string or in a buffer.
fromURLThe RSS stream to load is accessible by a URL.
An automatic detection is performed if this parameter is not specified. The type of the source is automatically deduced from <Source of RSS Stream>:
  • if <Source of RSS Stream> starts with "http://", the fromURL constant will be automatically used.
  • if <Source of RSS Stream> starts with a drive letter or with a UNC path, the fromFile constant will be automatically used.
  • otherwise, the fromString constant will be automatically used.
Remarks
Only the streams in RSS 2.0 format are currently supported.
Related Examples:
The RSS functions 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,...
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.
Component: wd290xml.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help