Tip

Create an RSS feed in Notes/Domino 8 with XML

I've found a simple solution to develop an RSS feed application in Louts Notes/Domino. The application will push RSS threads to subscribers. The design elements that are included in the application are as follows:

In your Lotus Notes view, the following tags make up the structure of each item/row in the RSS feed:

  1. Item tag
  2. Link tag
  3. Description
  4. Publish date
  5. Author

The idea behind this is to have each document that's created in the Notes view render its values as XML tags to generate RSS feed items. You'll need to make sure that the view property Treat view contents as HTML is enabled.

Related resources from SearchDomino.com:
Verify scheduled agent status with Domino Extensible Language (DXL)

Loading XML from JavaScript

How to apply XSL style sheets to XML views

This view will be embedded in the page, which will contain the necessary XML tags for an RSS feed document. Make sure that the Content Type view property is selected as HTML and that Render pass through HTML is also enabled.

This application works in Lotus Notes 8 and higher, as well as Internet Explorer 6. The URL to subscribe to this RSS feed would be the URL of the page. For example:
http<://<server name><>/<database file path><>/<page name>>?openPage.

Here are the Lotus Notes view formulas for the item tags:

  • In the first column:
    <item> "Item tag starts"
    
  • In the second column:
    "<title>"+ <<field name for title> + "</title>"
    
  • In the third column:
    "<link>"+<field name for link > +"</link>"
    
  • In the fourth column:
    "<description>"+>"+<field name for description> +"</description>"
    
  • In the fifth column:
    "<pubDate>"+@Text(<field name for Publish Date>)+"</pubDate>"
    
  • In the sixth column:
    "<author>"+<field name for Author >+"</author>""
  • In the seventh column:
    </item> "Item tag ends"

The following XML code will appear before the embedded view on the page:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Test Portal RSS Feed</title>
    <link> http://xyz.com</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <pubDate>Wed, 29 Apr 2009 07:57:33 GMT</pubDate>
    <description>Recent Activity Log for The Test Portal</description>

Finally, insert the following code after the embedded view:

</channel>
</rss>

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member Ali Ahmad. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino technical tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

This was first published in July 2009

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.