How to create a RSS feed

How to create a RSS feed from yourdatabase on formation

numero = 208
interpreted = N
texte = How to create a RSS feed from yourdatabase on formation. Upon loading this page a new version of your RSS is generated. Change all the "YourDomain, YourName, YourRSS, YourLogo, YourDescription" and adjust the URL's and database calls as needed. Samples: feed://www.DucCutters.com/RSS/DucCutters.xml feed://www.DucCutters.com/RSS/DucCuttersPress.xml
<!-- HAS_WEBDNA_TAGS --><HTML>[WriteFile YourRSS.xml]<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"xmlns:wfw="http://wellformedweb.org/CommentAPI/"xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>YourDomain.com RSS</title><link>http://www.YourDomain.com/</link><image><title>YourDomain.com</title><link>http://www.YourDomain.com/</link><url>http://www.YourDomain.com/YourLogo.png</url></image><description>YourDescription of your RSS info.</description><pubDate>[date %a, %d %b %Y] 03:11:00 +0000</pubDate><copyright>[DATE format=%Y] YourDomain. All rights reserved.</copyright><ttl>60</ttl><webMaster>email@YourDomain.com (YourName)</webMaster><managingEditor>email@YourDomain.com (YourName)</managingEditor><generator>WebDNA</generator><language>en-us</language><atom:link href="http://www.YourDomain.com/YourRSS.xml" rel="self" type="application/rss+xml" />[/WriteFile]<!-- YourDatabase.db format: sku,pix,link,xdate,title -->[SEARCH db=YourDatabase.db&neSKUdatarq=0&SKUsort=1][FOUNDITEMS][AppendFile YourRSS.xml]<item><category>YourRSS</category><title>[title]</title><description><![CDATA[[removeHTML][title][/removeHTML]]]></description><content:encoded><![CDATA[<P><img src="http://www.YourDomain.com/[pix].jpg" align="left">[removeHTML][title][/removeHTML]</P>]]></content:encoded><!-- xdate format: [date %a, %d %b %Y] --><pubDate>[XDATE] [TIME] +0000</pubDate> <link>http://www.YourDomain.com/[link]</link><guid isPermaLink="true">http://www.YourDomain.com/[link]</guid><wfw:commentRss>http://www.YourDomain.com/[link]</wfw:commentRss><comments>http://www.YourDomain.com/RSScomments.tpl</comments></item>[/AppendFile][/FOUNDITEMS][/SEARCH][AppendFile YourRSS.xml]</channel></rss>[/AppendFile]<!-- Created by Possession Studios. For more information visit www.PossessionStudios.com --></HTML>
Then validate your new RSS feed using the following... http://www.FeedValidator.org/ How to create a RSS feed from yourdatabase on formation.

Upon loading this page a new version of your RSS is generated.
Change all the "YourDomain, YourName, YourRSS, YourLogo, YourDescription" and adjust the URL's and database calls as needed.

Samples:
feed://www.DucCutters.com/RSS/DucCutters.xml
feed://www.DucCutters.com/RSS/DucCuttersPress.xml

<!-- HAS_WEBDNA_TAGS -->

<HTML>

[WriteFile YourRSS.xml]<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
>

<channel>
<title>YourDomain.com RSS</title>
<link>http://www.YourDomain.com/</link>
<image><title>YourDomain.com</title>
<link>http://www.YourDomain.com/</link>
<url>http://www.YourDomain.com/YourLogo.png</url>
</image>
<description>YourDescription of your RSS info.</description>
<pubDate>[date %a, %d %b %Y] 03:11:00 +0000</pubDate>
<copyright>[DATE format=%Y] YourDomain. All rights reserved.</copyright>
<ttl>60</ttl>
<webMaster>email@YourDomain.com (YourName)</webMaster>
<managingEditor>email@YourDomain.com (YourName)</managingEditor>
<generator>WebDNA</generator>
<language>en-us</language>
<atom:link href="http://www.YourDomain.com/YourRSS.xml" rel="self" type="application/rss+xml" />
[/WriteFile]

<!-- YourDatabase.db format: sku,pix,link,xdate,title -->

[SEARCH db=YourDatabase.db&neSKUdatarq=0&SKUsort=1]
[founditems]
[AppendFile YourRSS.xml]

<item>
<category>YourRSS</category>
<title>[title]</title>
<description><![CDATA[[removehtml][title][/removeHTML]]]></description>
<content:encoded><![CDATA[<P><img src="http://www.YourDomain.com/[pix].jpg" align="left">[removehtml][title][/removeHTML]</P>]]></content:encoded>
<!-- xdate format: [date %a, %d %b %Y] -->
<pubDate>[XDATE] [time] +0000</pubDate>
<link>http://www.YourDomain.com/[link]</link>
<guid isPermaLink="true">http://www.YourDomain.com/[link]</guid>
<wfw:commentRss>http://www.YourDomain.com/[link]</wfw:commentRss>
<comments>http://www.YourDomain.com/RSScomments.tpl</comments>
</item>

[/AppendFile]
[/FOUNDITEMS]
[/SEARCH]

[AppendFile YourRSS.xml]
</channel>
</rss>
[/AppendFile]

<!-- Created by Possession Studios. For more information visit www.PossessionStudios.com -->

</HTML>


Then validate your new RSS feed using the following...
http://www.FeedValidator.org/ Bill Johnson

DOWNLOAD WEBDNA NOW!

Top Articles:

Tips and Tricks

A list of user-submitted tips ...

Download WebDNA Applications

WebDNA applications...

WebDNA Libraries

A list of available libraries for WebDNA...

WebDNA Modules

A list of the currently available modules...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Related Readings:

Setting a 30-minute Cookie

Configuring the expires time for a short-term cookie is tricky...

How to setup CODA to work with WebDNA?

This page will show graphically how to setup CODA as a WebDNA partner :-)...

Redefining [date] & [time] to match your time zone

Your server is not always in the same time zone as your web site...

How old am I?

You want to express an age in years given the dob (mm/dd/yyyy) and today's date...

Handling credit card numbers

Encrypting the credit card numbers does the job quite nicely...

Paypal IPN

...