Aranea::XML::PageList
- object representing the <page_list>
of an Aranea XML object
|
The PageList
object represents the page_list
section of an
Aranea XML object. Here is an example:
|
The PageList
object serves as a container for a collection of
PageEntry
s. Under normal circumstances,
the creation of a PageList
should be handled automatically by
the Aranea::XML::Aranea
object.
new($data)
PageList
object given parsed XML data. Note that this
method is rarely invoked manually; under typical usage patterns, the
constructor of Aranea::XML::Aranea
will call
this method automatically.
entries([$listref])
PageEntry
s. When called with no
arguments, this method returns a listref of PageEntry
s. When
called with a single listref, the collection of PageEntry
s is set
to the listref.
The typical usage pattern is to iterate over each page object and perform some action, e.g.,
|
add_entry($entry)
PageEntry
to this PageList
.
write_xml($writer)
PageList
; takes an
XML::Writer
as its only argument. Note that this method is rarely
invoked manually; under typical usage patterns, the write_xml
method of Aranea::XML::Aranea
will call this
method automatically.