The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XML::Atom::Syndication::Document - a class representing the root of an Atom syndication feed.

DESCRIPTION

A ultra simple object that replaces the dynamic Document object XML::Parser::Style::Elemental used to provide us.

METHODS

XML::Atom::Syndication::Document->new

Constructor method. Creates an instance and returns it.

$atom->contents([\@children])

Returns an array reference to the documents's child objects in the parse tree. Sets the value when an optional array reference parameter is passed.

$atom->query($xpath)

Takes XPath-esque query string and, similar to the param method in the CGI pacakge, returns either the first item found or an array of all matching elements depending on the context in which it is called. undef is returned if nothing could be matched. These objects will be XML::Atom::Syndication elements except for the root element, an instance of this class.

This is not a full XPath implementation. For more details on the supported syntax see the documentation for Class::XPath.

SEE ALSO

XML::Parser::Style::Elemental, XML::Atom, Class::XPath

AUTHOR & COPYRIGHT

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

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 27:

=begin without a target?

Around line 41:

'=item' outside of any '=over'

Around line 63:

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

Around line 74:

'=end' without a target?