<<

NAME

Feed::Parser::Item

DESCRIPTION

Objects of this class represent the items/entries in the feed.

METHODS

Any item or entry element that does not have a corresponding entry here is available via its name. If it has a namespace and is not an Atom or RDFSS element then its name will be preceded by the standard namespace label and an underscore. For instance, a Dublin Core date is available as "dc_date". There are two exceptions to this. The Atom author and link elements are available as "atom_author" and "atom_link" respectively.

REMEMBER HTML and XHTML may contain relative links. You will need to resolve these yourself. Elements known to contain HTML and XHTML will have an attribute named "base" that contains the base URI to be used when resolving relative links for that element.

Any element known to contain localizable text will have an attribute named "lang" that contains the language of the text.

authors -- atom:author + author + itunes_author + dc:creator

These will be objects of class of Feed::Parser::Element::Person.

contributors -- atom:contributor + dc:contributor

These will be objects of class of Feed::Parser::Element::Person.

categories -- category + itunes:category + media:cateogory

iTunes provided categories have their scheme/domain attribute set to:

 http://www.itunes.com/DTDs/Podcast-1.0.dtd
These will be objects of class of Feed::Parser::Element.

link -- link, rss:link, atom:link[@rel="alternate"]

This is a link to the website that this is a feed for.

If the feed is RSS then this is the link element and failing that a link element in the Atom namespace. Atom link elements are often used in RSS with rel="self" to provide the URL of the feed itself. If there are more then one link element an RSS channel then the first link element is used.

If the document is Atom then this is the first link element with rel="alternate" or no rel at all.

This will be an object of class of Feed::Parser::Element::Link.

links -- link + rss:link + atom:link

This is the first link element in an RSS feed and all Atom link elements in an RSS or Atom feed.

These will be objects of class of Feed::Parser::Element::Link.

enclosure -- enclosure, atom:link[@rel="enclosure"]

enclosures -- enclosure + atom:link[@rel="enclosure"]

SEE ALSO

Feed::Parser::Result Feed::Parser::Feed Feed::Parser::Element Feed::Parser::Element::Link Feed::Parser::Element::Person Feed::Parser::Element::Text

<<