The Wabe → Index of Software Packages → XML::LibXML::Document::RSS
XML::LibXML::Document::RSS - RDF Site Syndication
use XML::LibXML::Document::RSS;
$document = new XML::LibXML::Document::RSS 'http://my.dot.com/';
$document->addItem('Item #1 Title', 'http://my.dot.com/item1/',
'Hello. This is a summary of Item #1.');
This module presents a number of convenience functions for XML::LibXML to generate and edit RSS documents.
Constants are not exported but may be used for methods that require a namespace URI.
XML::LibXML::Document::RSS is a subclass of XML::LibXML::Document and inherits all of its methods but overrides none.
The TITLE, LINK, and DESCRIPTION parameters are placed in the manditory elements of the same name. Any additional parameters are passed onto the constructor for an XML::LibXML::Document object.
Note that RDF insists that there is at most one item per document with an 'about' attribute of any given value. If you call setItem with a LINK that is already in the document, the corresponding item is replaced.
None by default.
my $rss = new XML::LibXML::Document::RSS
'My RSS Feed',
'http://my.dot.com/rss.xml',
'This is the feed my company provides so that people may see that ' .
'we don\'t update frequently.';
# It's not a legal RSS document unless it has at least one item...
setItem $rss
'This is item #1',
'http://my.dot.com/item1.html',
'Item #1 is about stuff.';
print $rss->toString;
$Log: RSS.pm,v $
Revision 1.0 2003/01/31 00:58:42 rgm
Initial revision
Rob Menke, rgm@the-wabe.com
the XML::LibXML manpage, the XML::LibXML::Document::RSS::Syndication manpage, perl(1).
Last Modified: 2003/12/09 04:13:38 GMT
(Send problems to Rob Menke)
Page style: Classic | Cyan | Dark