AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Fuente RSS
  • Overview
  • How to?
  • Databinding and RSS feed
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Creating an RSS reader
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to produce and/or consume an RSS feed (Rapid Simple Syndication).
An RSS feed is used to produce (make available) a data stream in standard format. This data stream can be read (consumed) by an application.
A reader of RSS feed is used to display one or more RSS feeds.
How to?
To read an RSS feed:
  1. Declare a variable of type rssStream. This variable will contain the information regarding the RSS feed to handle.
  2. Load the RSS feed with rssInitialize. The RSS Stream variable is initialized with the specified stream.
    MyRSSStream is rssStream
    MyRSSStream = rssInitialize("http://blogs.webdev.info/rss.awp?blog=technicalsupport", fromURL)
  3. Check whether the channel of the stream is valid and load it. For example:
    IF MyRSSStream.Channel.Count >= 1 THEN 
    	MyChannel is rssChannel
    	MyChannel = MyRSSStream.Channel[1]
    	...
    END
  4. The content of the RSS feed can be displayed in a table linked by databinding to the rssChannel variable containing the entries of the stream (in our example, MyChannel.Entry).
Note: It is advisable to use:
  • FOR EACH loops to read the entries of a channel associated with a stream.
  • manual loops using the Count property (can be used on the rssChannel type to get the number of channels and on the rssEntry type to get the number of entries).

Databinding and RSS feed

The Databinding is available for the rssXXX variables so that the RSS information can be displayed without programming.
Ver también
Versión mínima requerida
  • Versión 14
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local