Home arrow Delphi-Kylix arrow Finishing an RSS Reader
DELPHI-KYLIX

Finishing an RSS Reader


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.

Author Info:
By: Jacques Noah
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
August 23, 2006
TABLE OF CONTENTS:
  1. · Finishing an RSS Reader
  2. · New code
  3. · Getting files from a website
  4. · Full code for the RSS reader

print this article
SEARCH DEVARTICLES

Finishing an RSS Reader
(Page 1 of 4 )

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.


blog comments powered by Disqus
DELPHI-KYLIX ARTICLES

- Loading an XML Document into the DOM
- Delphi Wrapper Classes and XML
- Delphi and the DOM
- Delphi and XML
- Internet Access: Client Service
- Finishing the Client for an Internet Access ...
- The Client for an Internet Access Control Ap...
- User Management for an Internet Access Contr...
- Important Procedures for an Internet Access ...
- Server Code for an Internet Access Control A...
- Constructing the Interface for an Internet A...
- Building a Server Application for an Interne...
- Building an Internet Access Control Applicat...
- Client Dataset: Working with Data Packets an...
- Using the Client Dataset in an N-Tiered Appl...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials