NAME

XML::RAI::Image - An interface to the image elements of a RSS feed.

DESCRIPTION

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

METHODS

$image->source

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

$image->parent

Returns the parent of the RAI object.

META DATA ACCESSORS

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.

$image->height
  • /channel/image[0]/height

  • /channel/image[0]/rss091:height

$image->url
  • /channel/image[0]/url

$image->width
  • /channel/image[0]/width

  • /channel/image[0]/rss091:width

AUTHOR & COPYRIGHT

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

6 POD Errors

The following errors were encountered while parsing the POD:

Around line 25:

=begin without a target?

Around line 38:

'=item' outside of any '=over'

Around line 47:

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

Around line 64:

'=item' outside of any '=over'

Around line 92:

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

Around line 99:

'=end' without a target?