Finishing an RSS Reader
(Page 1 of 4 )
In this part of the article, we will discuss how to get an RSS file from a website, and store it on the local disk for easy viewing. This way we do not need to be connected to the Internet.
Introduction
RSS files usually come in XML format. Luckily for us, Delphi has a component that can parse the XML data. We will be using that component to read the XML file(s) that we download. We will be modifying the application that we created in the previous article in order to add this new functionality.
What you need
Any Borland Delphi version.
Code
First select the treeview component and set its align property to alNone. Do the same for the webbrowser component and delete the tsplitter. Add a new treeview and a ListView component; call them "lv" and "tvxml," respectively.
Now click on the listview component and go to the object inspector. Scroll down to the ViewStyle property and select vsReport. Then double click on the Listview and add the following column headings:
Title
Link
Description
At this point your form should look something like this:
Finally add a XMLDoc component from the Internet Tab, then add a new form and save it as "getxml." Add onto this form a TEdit and a button.
Next: New code >>
More Delphi-Kylix Articles
More By Jacques Noah