Wednesday, April 25, 2007

How To Make Stiletto Heels

Retrieve an RSS feed in WebDev

To retrieve the contents of an XML file, you must use the HTTPRequest .

Here's the code:
is a string sURL = "http://nomDomaine.com/rep_du_Fichier_XML"

HTTPRequest (sURL , ProjetInfo ( piNomProjet )) / /
SRES is a string = HTTPDonneRésultat ( HTTPRésultat )

That SRES contains the XML feeds.
Then you must browse the file to extract items. The use of function "XML" makes it easy to get content.

There is a complete example in WinDev "RSS reader", procedures and classes are used in WebDev.

0 comments:

Post a Comment