XML::Rabbit::Role::Node - Base role for all nodes
version 0.4.0
See XML::Rabbit::RootNode or XML::Rabbit::Node for examples.
This module provides attributes and methods common to all nodes.
See XML::Rabbit for a more complete example.
An instance of a XML::LibXML::Node class representing the a node in an XML document. Read Only.
An instance of a XML::LibXML::XPathContext class initialized with the node attribute. Read Only.
node
A HashRef of strings that defines the prefix/namespace XML mappings for the XPath parser. Usually overriden in a subclass like this:
has '+namespace_map' => ( default => sub { { myprefix => "http://my.example.com", myotherprefix => "http://other.example2.org", } }, );
Dumps the XML of the current node as a native perl string.
Robin Smidsrød <robin@smidsrod.no>
This software is copyright (c) 2013 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.