Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin  HomeHome
Lansa for Web
 AS400,iseries,System i,LANSA,CSS,HTML,Scripts :LANSA :Lansa for Web
Message Icon Topic: how to create RSS feeds using LANSA ? Post Reply Post New Topic
Author Message
Jhon
Newbie
Newbie
Avatar

Joined: 10 Apr 2007
Location: Canada
Posts: 10
Quote Jhon Replybullet Topic: how to create RSS feeds using LANSA ?
    Posted: 07 Nov 2008 at 6:42am

Hi,


Any one have experience in creating RSS feed in LANSa ? Our project has requiremnet to show
daily news in RSS feeds. The news are stored in DB2 Database.

Regards,
Jhon
IP IP Logged
mallsop
Newbie
Newbie
Avatar

Joined: 05 Feb 2010
Posts: 2
Quote mallsop Replybullet Posted: 05 Feb 2010 at 2:47pm
You can just create an rss xml file with the data from your db2 db. You can simply call that file within any rss reader, flash, flex, php, asp, etc.
IP IP Logged
Anil
Newbie
Newbie
Avatar

Joined: 10 Apr 2007
Location: Cote D'Ivoire
Posts: 32
Quote Anil Replybullet Posted: 18 Feb 2010 at 4:49am
Here are some examples for RSS format
 

 rss
    channel
    title
    link
    description
    copyright
    PubDate
    lastBuildDate
    image
    item
   title
   link
   description
   author
   pubDate
   guid
    item
   title
   link
   description
   author
   pubDate
   guid
    etc....

<xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>A Sample RSS 2.0 Feed</title>
    <link>http://example.com/rss2/</link>
    <description>An example of a simple RSS feed. This is the description of the feed itself, not an item.</description>
    <item>
      <title>This is the most recent entry in my sample feed</title>
      <link>http://example.com/rss2/entry.html</link>
      <description>This is the text that will appear in the feedreaders. It describes the post itself, not the entire feed.</description>
      <guid>http://example.com/rss2/entry.html</guid>
    </item>
  </channel>
</rss>

<?xml version="1.0" ?>
<rss version="0.92">
<channel>
 <title>My Site</title>
 <link>http://www.example.com/blog/</link>
 <description>Tom Muck's Blog</description>
 <language>en-us</language>
 <item>
  <title>My news for today</title>
  <description><![CDATA[This is a news item]]></description>
  <link>http://www.example.com/blog/index.cfm?newsid=1</link>
  <guid isPermaLink="true">http://www.example.com/blog/index.cfm?newsid=1</guid>
  <pubDate>Mon, 14 May 2007 12:42:45 GMT</pubDate>
 </item>
 <item>
  <title>Another news item</title>
  <description><![CDATA[This is another news item]]></description>
  <link>http://www.example.com/blog/index.cfm?newsid=2</link>
  <guid isPermaLink="true">http://www.example.com/blog/index.cfm?newsid=2</guid>
  <pubDate>Tues, 15 May 2007 10:52:05 GMT</pubDate>
 </item>
</channel>
</rss>
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Bulletin Board Software by Web Wiz Forums version 8.05
Copyright ©2001-2006 Web Wiz Guide