|
|
|
|
rssInitialize (Function) In french: rssInitialise Loads a RSS feed in memory. 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. | | fromFile | The RSS stream to load is contained in a file. | fromString | The RSS stream to load is contained in an Ansi character string or in a buffer. | fromURL | The 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:
|
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,...
|
|
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|