XML
  Home arrow XML arrow Page 2 - Creating an RSS Reader Application
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

Creating an RSS Reader Application
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 11
    2007-02-20


    Table of Contents:
  • Creating an RSS Reader Application
  • Code
  • Parsing the RSS document
  • Creating an enhanced RSS document

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Creating an RSS Reader Application - Code
    ( Page 2 of 4 )

    The logical way to create an application to automate the building of an RSS document would be to offer the user a choice between creating an Enhanced RSS document or a Simple RSS document, and then to proceed from there.

    So let's create a PHP page with a navigation bar on the left that will contain two links: 

    1. Read an RSS document
    2. Create an RSS document

    The idea is to use one page on which we do everything, so we are going to create a few functions to display information according to whichever link a user has selected.

    When the "Read RSS document" link is pressed, the "showfrm" function is activated; it then displays a form requesting the name of the RSS document to be opened.  Once you've entered and submitted the document name, a function called "showparsedContents" is called; it then parses the document. Below are the showfrm and showparsedContents() functions:

    function showfrm(){
     
    echo '<form id="form1" name="form1" method="post"
    action="' .$_SERVER['PHP_SELF'].'?action=parse">
     
    <table width="100%" border="0" cellspacing="1">
       
    <tr>
     
        <td>&nbsp;</td>
     
        <td width="31%">&nbsp;</td>
     
        <td width="48%">&nbsp;</td>
     
      </tr>
     
      <tr>
     
        <td width="21%" valign="top"><span class="style1">RSS
    Document Location: </span></td>
     
        <td colspan="2" valign="top"><input name="location"
    type="text" id="location" size="80" /></td>
        </tr>
     
      <tr>
     
        <td>&nbsp;</td>
     
        <td>&nbsp;</td>
     
        <td>&nbsp;</td>
     
      </tr>
     
      <tr>
     
        <td>&nbsp;</td>
     
        <td><input type="submit" name="Submit"
    value="Submit" /></td>
     
        <td>&nbsp;</td>
      
     </tr>
     
    </table>';

      echo '</form>';
    }

    Here's a example of the outcome of this function:

    Fig 1. A form that request RSS document name to parse...



     
     
    >>> More XML Articles          >>> More By Jacques Noah
     

       

    XML ARTICLES

    - Flex Array Collection Sort and Filtering
    - The Flex Tree Control
    - Flex List Controls
    - Working with Flex and Datagrids
    - How to Set Up Podcasting and Vodcasting
    - Creating an RSS Reader Application
    - Building an RSS File
    - An Introduction to XUL Part 6
    - An Introduction to XUL Part 5
    - An Introduction to XUL Part 4
    - An Introduction to XUL Part 3
    - An Introduction to XUL Part 2
    - An Introduction to XUL Part 1
    - XML Matters: Practical XML Data Design and M...
    - Practical XML Data Design and Manipulation f...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT