XML::RAI::Item - An interface to the item elements of a RSS feed.


A subclass of XML::RAI::Object, XML::RAI::Item handles the mapping function and retrieval of RSS item elements.



Returns the XML::RSS::Parser::Element that the object is using as its source.


Returns the parent of the RAI object.

$item->add_mapping(key, @xpaths)

Creates or appends XPath mappings to the item object for extensibility and easier access of RAI.


These accessor methods attempt to retrieve meta data from the source XML::RSS::Parser element by checking a list of potential tag names until one returns a value. They are generally based on Dublin Core terminology and RSS elements that are common across the many formats. If called in a SCALAR context, the value of the first element of the tag being matched is returned. If called in an ARRAY context it will return all of the values to the tag being matched -- it does not return all of the values for all of the tags that have been mapped to the method. (Note that some mappings only allow one value to be returned.) Returns undef if nothing could be found.

The following are the tags (listed in XPath notation) mapped to each method and the order in which they are checked.

  • dcterms:abstract

  • description

  • dc:description

  • xhtml:body

  • xhtml:div

  • content:encoded

  • description

  • dc:description

  • rss091:description

  • xhtml:body

  • xhtml:div

  • content:encoded

  • xhtml:body

  • xhtml:div

  • content:encoded

  • dc:contributor

  • dc:coverage

  • dcterms:created

  • dc:date

  • pubDate

  • rss091:pubDate

  • dcterms:created

  • dc:creator

  • author

  • description

  • dc:description

  • dcterms:abstract

  • dc:format

  • dc:identifier/@rdf:resource

  • dc:identifier

  • guid

  • link

  • dcterms:issued

  • dc:date

  • pubDate

  • rss091:pubDate

  • dcterms:issued

  • @xml:lang

  • dc:language

  • /@xml:lang

  • /channel/dc:language

  • /channel/language

  • /channel/rss091:language

  • link

  • @rdf:about

  • guid[@isPermaLink="true"]

  • dcterms:modified

  • dc:date

  • pubDate

  • rss091:pubDate

  • dcterms:modified

  • trackback:ping/@rdf:resource

  • trackback:ping

  • trackback:about/@rdf:resource

  • trackback:about

  • dc:publisher

  • /channel/dc:publisher

  • /channel/managingEditor

  • /channel/rss091:managingEditor

  • dc:relation/@rdf:resource

  • dc:relation

  • dc:rights

  • /channel/copyright

  • /channel/creativeCommons:license

  • /channel/rss091:copyright

  • dc:source

  • source

  • dc:subject

  • category

  • title

  • dc:title

  • dc:type

  • dcterms:valid

  • expirationDate

The ping and pinged methods have been moved into their own RAI plugin. See XML::RAI::TrackBack for more.


Please see the XML::RAI manpage for author, copyright, and license information.

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 99:

=begin without a target?

Around line 112:

'=item' outside of any '=over'

Around line 128:

You forgot a '=back' before '=head2'

Around line 466:

You forgot a '=back' before '=head1'

Around line 473:

'=end' without a target?