TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Atom and rss
1. Atom and RSS
Web Syndication Formats
Nathan Quach – 17325178@student.uws.edu.au
2. Agenda
What are Atom & RSS?
History
Benefits of Atom & RSS
How to read a Atom/RSS feed
Compare Atom & RSS
Implement Atom & RSS in Joomla
2 8/7/2012
3. What are Atom & RSS?
Families of web content syndication format.
XML-based
used in web feed
3 8/7/2012
4. What are Atom & RSS?
Atom RSS
Atom Syndication Really Simple
Format Syndication
File extension: .atom, File extension: .rss, .xml
.xml Internet media type:
Internet media type: application/rss+xml
application/atom+xml Type of format: Web
Type of format: Web syndication
syndication Extended from: XML
Extended from: XML Latest version: RSS 2.0
4 Latest version: Atom 1.0 8/7/2012
5. What are Atom & RSS?
Atom example document
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Feed</title>
<subtitle>A subtitle.</subtitle>
<link href="http://example.org/feed/" rel="self" />
<link href="http://example.org/" />
<id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
<email>johndoe@example.com</email>
</author>
<entry>
<title>Atom-Powered Robots Run Amok</title>
<link href="http://example.org/2003/12/13/atom03" />
<link rel="alternate" type="text/html”
href="http://example.org/2003/12/13/atom03.html"/>
<link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text.</summary>
</entry>
5 </feed> 8/7/2012
6. What are Atom & RSS?
RSS example document
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>RSS Title</title>
<description>This is an example of an RSS feed</description>
<link>http://www.someexamplerssdomain.com/main.html</link>
<lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate>
<pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate>
<item>
<title>Example entry</title>
<description>Here is some text containing an interesting
description.</description>
<link>http://www.wikipedia.org/</link>
<guid>unique string per item</guid>
<pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate>
</item>
</channel>
</rss>
6 8/7/2012
7. History
1997 scriptingNews
(UserLand)
Deprecated
1999 RSS 0.9 scriptingNews
(Netscape) RSS 0.91
2.01 (UserLand)
(Netscape)
2000 RSS 0.91 RSS 1.0 (RSS-
(UserLand) RSS 0.92
DEV Working
(UserLand)
Group)
2002 RSS 2.0
(UserLand) Froze Atom Project
n started
2003
RSS 2.0
(Harvard)
2005
Atom 1.0
7 8/7/2012
8. Why Atom & RSS?
Need to distribute content through Internet
Site to site
Site to end user
Simple & fast method/standard/format
8 8/7/2012
9. Benefits from Atom & RSS
To users:
Save time
Protect privacy
To publishers:
Allow content to wider audience
Increase site’s awareness, traffic
Improve site-user relationship
Syndicate other feeds to generate new content
9 8/7/2012
10. “Disadvantage” of Web Feed
To users:
learn new thing.
personal preference concern
To publishers:
hard to know subscriber’s info (compare to
newsletter)
server load concern
10 8/7/2012
11. How to read a Feed
Feed Reader or Feed Aggregator:
Windows
BottomFeeder: http://www.cincomsmalltalk.com/BottomFeeder/
FeedDemon: http://www.feeddemon.com/
Mac OS X
BottomFeeder: http://www.cincomsmalltalk.com/BottomFeeder/
NetNewsWire: http://ranchero.com/netnewswire/
Linux
BottomFeeder: http://www.cincomsmalltalk.com/BottomFeeder/
Android
gReader
FeedR
iOS
Reeder
NetNewsWire
11 8/7/2012
12. Compare RSS and Atom
RSS Atom
Schema No Yes
Specifications RSS2.0 is frozen IETF RFC 4287
Publishing Protocols MetaWeblog, Blogger AtomPub
Namespace No XML namespace
Unregistered IANA registered
Autodiscovery
Application/rss+xml Application/atom+xml
Feed & entry title, uid
Feed title, link,
Required content & last updated
description
timestamp
Number of elements 30 20
12 8/7/2012
13. Implement Atom & RSS in
Joomla
Demo environment:
Windows/Linux
XAMPP 1.7.4
Joomla 1.7
Joomla already has integrated Syndication
modules for:
Publishing feeds.
Syndicating feeds from other sites.
13 8/7/2012
14. Implement Atom & RSS in
Joomla
Feed Publishing:
Login to Administrator
Select Extensions > Module Manager
Click New > Select Syndication Feeds Module
14 8/7/2012
15. Implement Atom & RSS in
Joomla
Feed Publishing (cont)
15 8/7/2012
16. Implement Atom & RSS in
Joomla
Feed Publishing (cont)
Enter required information and Save
Go to a page and check the result
16 8/7/2012
17. Implement Atom & RSS in
Joomla
Feed Syndication:
Login to Administrator
Select Extensions > Module Manager
Click New > Select Feed display Module
17 8/7/2012
18. Implement Atom & RSS in
Joomla
Feed Syndication (cont):
Input the Feed URL you want to syndicate.
Save and go to homepage to view the result.
18 8/7/2012