NAME

Payroll

SYNOPSIS

use Payroll;

my $file = "payrollIn.xml";
my $string = "";  # If dynamically created or read from STDIN.

my $payroll = Payroll->new();
if ($payroll->didErrorOccur())
{
  die $payroll->errorMessage();
}

my $result = $payroll->process(file => $file, string => $string);
my $output = $result->generateXML();

# now you either print it or write to a file.
print $output;

DESCRIPTION

This is the base package for the Payroll Module.

Exported FUNCTIONS

scalar new()

Creates a new instance of the object.
takes:

bool isValid(void)

Returns 0 or 1 to indicate if the object is valid.  The error will be available via errorMessage().

void setError(errorString)

Sets error = 1 and $self->{errorString} = errorString.
returns nothing

scalar didErrorOccur(void)

Returns the value of error.

scalar errorMessage(void)

Returns the value of errorString.

Payroll::XML::OutData process(file, string)

Processes the xml data specified in the file or the string.  If both
are specified, then the string takes precedence.

Returns an instance of Payroll::XML::OutData which holds the perl data
structure and can be turned into XML by calling it's generateXML()
method.

AUTHOR

Xperience, Inc. (mailto:admin@pcxperience.com)

SEE ALSO

perl(1)