XML::Elemental::Document - a generic document object.
XML::Elemental::Document is a subclass of XML::Elemental::Node that can be used with the Elemental parser to represent the document (root) node.
Parameterless constructor. Returns an instance of the object.
Returns an ordered array reference of direct sibling objects. In the case of the document object it will return 0 to 1 elements. Returns a reference to an empty array if the element does not have any siblings. If a parameter is passed all the direct siblings are (re)set.
Returns the root element of the document. This a connivence method that is the equivalent of:
$doc->contents->[0];
Inherited from XML::Elemental::Node, returns a reference to itself.
Inherited from XML::Elemental::Node, returns undef. The document object never has ancestors.
Inherited from XML::Elemental::Node, returns undef. The document object is always the root of the tree.
Please see the XML::Elemental manpage for author, copyright, and license information.
4 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 '=head1'
'=end' without a target?
To install XML::Elemental, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Elemental
CPAN shell
perl -MCPAN -e shell install XML::Elemental
For more information on module installation, please visit the detailed CPAN module installation guide.