XML::Rabbit::Role::Document - XML Document base class
version 0.1.1
package MyXMLSyntax; use Moose; with 'XML::Rabbit::Role::Document'; sub root_node { return shift->_document->documentElement(); }
This module provides the base document attribute used to hold the parsed XML content.
See XML::Rabbit for a more complete example.
A string representing the path to the file that contains the XML document data. Read Only. Constructor parameter is file.
file
A glob reference / file handle that points to the XML document data. Read Only. Constructor parameter is fh.
fh
A binary string containing the XML document data. Read Only. Constructor parameter is xml.
xml
An instance of an XML::LibXML::Document class. Read Only. Constructor parameter is dom.
dom
Dumps the XML of the entire document as a native perl string.
Robin Smidsrød <robin@smidsrod.no>
This software is copyright (c) 2011 by Robin Smidsrød.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install XML::Rabbit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Rabbit
CPAN shell
perl -MCPAN -e shell install XML::Rabbit
For more information on module installation, please visit the detailed CPAN module installation guide.