@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb008 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
extlib
/
XML
/
Elemental
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/extlib/XML/Elemental/Document.pm
package XML::Elemental::Document; use strict; use base qw( XML::Elemental::Node ); __PACKAGE__->mk_accessors(qw( contents attributes )); sub new { my $self = shift->SUPER::new(@_); $self->{attributes} ||= {}; $self->{contents} ||= []; $self; } 1; __END__ =begin =head1 NAME XML::Elemental::Document - a generic document object. =head1 DESCRIPTION XML::Elemental::Document is a subclass of L<XML::Elemental::Node> that can be used with the Elemental parser to represent the document (root) node. =head1 METHODS =item XML::Elemental::Document->new Parameterless constructor. Returns an instance of the object. =item $doc->contents([\@children]) Returns an ordered array reference of direct sibling objects. 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. =item $doc->root Inherited from L<XML::Elemental::Node> returns a reference to itself. =head1 AUTHOR & COPYRIGHT Please see the XML::Elemental manpage for author, copyright, and license information. =cut =end