XML::Generator::RSS10

XML::Generator::RSS10 is a Perl module to generate SAX events for RSS.
Download

XML::Generator::RSS10 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Rolsky
  • Publisher web site:
  • http://search.cpan.org/~drolsky/XML-Generator-RSS10-0.01/lib/XML/Generator/RSS10.pm

XML::Generator::RSS10 Tags


XML::Generator::RSS10 Description

XML::Generator::RSS10 is a Perl module to generate SAX events for RSS. XML::Generator::RSS10 is a Perl module to generate SAX events for RSS.SYNOPSIS use XML::Generator::RSS10; my $rss = XML::Generator::RSS10->new( Handler => $sax_handler ); $rss->item( title => 'Exciting News About my Pants!', link => 'http://pants.example.com/my/news.html', description => 'My pants are full of ants!', ); $rss->channel( title => 'Pants', link => 'http://pants.example.com/', description => 'A fascinating pants site', );METHODSnewThis is the constructor for this class.It takes several parameters, though only one, "Handler", is required:· Handler This should be a SAX2 handler. If you are looking to write RSS to a file or store it in a string, you probably want to use XML::SAX::Writer. This parameter is required.· pretty If this is true, the generated XML document will include extra spaces and newlines in an effort to make it look pretty. This defaults to false.· modulesThis parameter can be used to make additional RSS 1.0 modules available when creating a feed. It should be an array reference to a list of module prefixes.You can specify any prefix you like, and this module will try to load a module named XML::Generator::RSS10::.This module comes with support for the core RSS 1.0 modules, which are Content (content), Dublin Core (dc), and Syndication (sy). It also include a module supporting the proposed Administrative (admin) and Creative Commons (cc) modules. See the docs for XML::Generator::RSS10::content, XML::Generator::RSS10::dc, XML::Generator::RSS10::sy, XML::Generator::RSS10::admin, and XML::Generator::RSS10::cc for details on how to use them.The Dublin Core and Syndication modules are loaded by default if this parameter is not specified.The constructor begins the RSS document and returns a new XML::Generator::RSS10 object.itemThis method is used to add item elements to the document. It accepts the following parameters:· title The item's title. Required.· link The item's link. Required.· description The item's link. Optional. This element will be formatted as CDATA since many people like to put HTML in it.imageThis method is used to add an image element to the document. It may only be called once. It accepts the following parameters:· title The image's title. Required.· link The image's link. Required.· url The image's URL. Required.textinputThis method is used to add an image element to the document. It may only be called once. It accepts the following parameters:· title The textinput's title. Required.· description The textinput's description. Required.· name The textinput's name. Required.· url The textinput's URL. Required.channelThis method is used add the channel element to the document. It also finishes the document. You must have added at least one item to the document prior to calling this method.You may not call any other methods after this one is called.· title The channel's title. Required.· link The channel's link. Required.· description The channel's description. Required. Requirements: · Perl


XML::Generator::RSS10 Related Software