Sam Crawley > PRANG-0.16 > PRANG::Cookbook::Node

Download:
PRANG-0.16.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.16   Source   Latest Release: PRANG-0.17

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 ^

syntax highlighting: