XML::Rabbit::RootNode - Root node base class
version 0.0.2
package MyXMLSyntax; use Moose; with 'XML::Rabbit::RootNode'; has title => ( isa => 'Str', traits => [qw(XPathValue)], xpath_query => '/root/title', ); no Moose; __PACKAGE__->meta->make_immutable(); 1;
This module provides the base node attribute used to hold the root of the XML document.
See XML::Rabbit for a more complete example.
An instance of a XML::LibXML::Node class representing the root node of an XML document. Read Only.
It is lazily loaded from the document attribute, which is inherited from XML::Rabbit::Role::Document.
document
An instance of a XML::LibXML::XPathContext class initialized with the node attribute. Read Only.
node
If a subclass has an attribute named namespace_map which is a HashRef it is used to initialize namespaces using the registerNs method. This is required on XML files that use namespaces, like XHTML.
namespace_map
registerNs
Robin Smidsrød <robin@smidsrod.no>
This software is copyright (c) 2010 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.