XML::RAI::Image - An interface to the image elements of a RSS feed.
A subclass of XML::RAI::Object, XML::RAI::Image handles the mapping function and retrieval of RSS channel elements.
Returns the XML::RSS::Parser::Element that the object is using as its source.
Returns the parent of the RAI object.
Creates or appends XPath mappings to the image 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.
undef
The following are the tags (listed in XPath notation) mapped to each method and the order in which they are checked.
/channel/image[0]/description
/channel/image[0]/rss091:description
/channel/image[0]/height
/channel/image[0]/rss091:height
/channel/image[0]/link
/channel/image[0]/title
/channel/image[0]/dc:title
/channel/image[0]/@rdf:resource
/channel/image[0]/@rdf:about
/channel/image[0]/url
/channel/image[0]/width
/channel/image[0]/rss091:width
Please see the XML::RAI manpage for author, copyright, and license information.
5 POD Errors
The following errors were encountered while parsing the POD:
=begin without a target?
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
You forgot a '=back' before '=head1'
'=end' without a target?
To install XML::RAI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::RAI
CPAN shell
perl -MCPAN -e shell install XML::RAI
For more information on module installation, please visit the detailed CPAN module installation guide.