The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PRANG::Cookbook::Node - Baseclass for nodes in the Cookbook series

SYNOPSIS

 package PRANG::Cookbook::Node;
 
 use Moose::Role;
 
 #sub xmlns { "" }  # no namespaces required (optional)
 
 1;

DESCRIPTION

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.

USAGE