XML::RAI::Channel(3)  User Contributed Perl Documentation XML::RAI::Channel(3)



NAME
       XML::RAI::Channel - An interface to the channel elements of a RSS feed.

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

METHODS
       $channel->src
           Returns the XML::RSS::Parser::Element that the object is using as
           its source.

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

       $channel->add_mapping(key, @xpaths)
           Creates or appends XPath mappings to the channel 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.

       $channel->contributor
           o   dc:contributor

       $channel->coverage
           o   dc:coverage

       $channel->creator
           o   dc:creator

       $channel->description
           o   description

           o   dc:description

           o   dcterms:abstract

           o   dcterms:alternative

       $channel->format
           o   dc:format

       $channel->generator
           o   admin:generatorAgent/@rdf:resource

           o   admin:generatorAgent

           o   generator

       $channel->identifier
           o   dc:identifier/@rdf:resource

           o   dc:identifier

           o   link

       $channel->issued
           o   dcterms:issued

           o   dc:date

           o   lastBuildDate

           o   rss091:lastBuildDate

       $channel->issued_strict
           o   dcterms:issued

       $channel->language
           o   @xml:lang

           o   dc:language

           o   language

           o   rss091:language

           o   $channel->link

               o   link

               o   @rdf:about

           o   $channel->maintainer

               o   admin:errorReportsTo/@rdf:resource

               o   admin:errorReportsTo

               o   webMaster

           o   $channel->modified

               o   dcterms:modified

               o   dc:date

               o   lastBuildDate

               o   rss091:lastBuildDate

           o   $channel->modified_strict

               o   dcterms:modified

           o   $channel->publisher

               o   dc:publisher

               o   managingEditor

               o   rss091:managingEditor

           o   $channel->relation

               o   dc:relation/@rdf:resource

               o   dc:relation

           o   $channel->rights

               o   dc:rights

               o   copyright

               o   creativeCommons:license

               o   rss091:copyright

           o   $channel->source

               o   dc:source

               o   source

               o   title

           o   $channel->subject

               o   dc:subject

               o   category

           o   $channel->title

               o   title

               o   dc:title

           o   $channel->type

               o   dc:type

           o   $channel->valid

               o   dcterms:valid

               o   expirationDate

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 77:
           =begin without a target?

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

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

       Around line 228:
           Expected '=item *'

       Around line 238:
           Expected '=item *'

       Around line 250:
           Expected '=item *'

       Around line 264:
           Expected '=item *'

       Around line 272:
           Expected '=item *'

       Around line 284:
           Expected '=item *'

       Around line 294:
           Expected '=item *'

       Around line 308:
           Expected '=item *'

       Around line 320:
           Expected '=item *'

       Around line 330:
           Expected '=item *'

       Around line 340:
           Expected '=item *'

       Around line 348:
           Expected '=item *'

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

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



perl v5.16.3                      2005-11-20              XML::RAI::Channel(3)
