PRANG::Cookbook::Node - Baseclass for nodes in the Cookbook series
package PRANG::Cookbook::Node; use Moose::Role; #sub xmlns { "" } # no namespaces required (optional) 1;
This class is just a base class for every node in the Cookbook series. It contains nothing more than what is shown above and just inherits from Moose::Role and provides a convenient place for a global XML namespace to be specified.
It also overrides the xmlns method to define that these nodes do not have namespaces (as a default). Instead if a node chooses to define what namespace it should be in, it is welcome to override this method too.
To install PRANG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PRANG
CPAN shell
perl -MCPAN -e shell install PRANG
For more information on module installation, please visit the detailed CPAN module installation guide.