GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::ELEMENTAL::DOCUMENT (3)

.ds Aq ’

NAME

XML::Elemental::Document - a generic document object.

CONTENTS

DESCRIPTION

XML::Elemental::Document is a subclass of XML::Elemental::Node that can be used with the Elemental parser to represent the document (root) node.

METHODS

XML::Elemental::Document->new Parameterless constructor. Returns an instance of the object.
$doc->contents([\@children]) 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.
$doc->root_element; Returns the root element of the document. This a connivence method that is the equivalent of:



  $doc->contents->[0];



$doc->root Inherited from XML::Elemental::Node, returns a reference to itself.
$doc->ancestors Inherited from XML::Elemental::Node, returns undef. The document object never has ancestors.
$doc->in($element) Inherited from XML::Elemental::Node, returns undef. The document object is always the root of the tree.

AUTHOR & COPYRIGHT

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

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 27: =begin without a target?
Around line 41: ’=item’ outside of any ’=over’
Around line 74: You forgot a ’=back’ before ’=head1’
Around line 81: ’=end’ without a target?
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::ELEMENTAL::DOCUMENT (3) 2009-08-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.