Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XML::RAI::Image(3)    User Contributed Perl Documentation   XML::RAI::Image(3)

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->src
	   Returns the XML::RSS::Parser::Element that the object is using as
	   its source.

       $image->parent
	   Returns the parent of the RAI object.

       $image->add_mapping(key,	@xpaths)
	   Creates or appends XPath mappings to	the image object for
	   extensibility and easier access of RAI.

   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->description
	   o   /channel/image[0]/description

	   o   /channel/image[0]/rss091:description

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

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

       $image->link
	   o   /channel/image[0]/link

       $image->title
	   o   /channel/image[0]/title

	   o   /channel/image[0]/dc:title

       $image->url
	   o   /channel/image[0]/@rdf:resource

	   o   /channel/image[0]/@rdf:about

	   o   /channel/image[0]/url

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

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

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

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 34:
	   =begin without a target?

       Around line 47:
	   '=item' outside of any '=over'

       Around line 61:
	   You forgot a	'=back'	before '=head2'

       Around line 140:
	   You forgot a	'=back'	before '=head1'

       Around line 147:
	   '=end' without a target?

perl v5.32.0			  2009-08-14		    XML::RAI::Image(3)

NAME | DESCRIPTION | METHODS | AUTHOR & COPYRIGHT | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=XML::RAI::Image&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help