Parser - The XML Configuration Parser Module.
use Business::Payroll::XML::Parser; my $obj = Business::Payroll::XML::Parser->new(periodNames => \%periodNames, validCountries => \%knownCountries); my $dataObj = $obj->parse(file => "config.xml"); # this is a Data object.
Parser will parse XML files that have been generated to the payroll specification. See the Business::Payroll::XML::Data man page for the structure of the returned data.
file points to the XML Config file to use. If you don't specify a file to work with then you must specify the xml via the string argument. If you specify both, then the string will take precedence. The file must still point to a valid file. returns: Business::Payroll::XML::Data instance with parsed info.
dataFile - The xml file name we are working with or the contents of the string of xml passed in. dataInVersion - The version of the input XML file we require. dataOutVersion - The version of the output XML file we require. dataObj - Data object that represents the xml file. xmlObj - The XML::LibXML object being used to parse the XML File. NOTE: All data fields are accessible by specifying the object and pointing to the data member to be modified on the left-hand side of the assignment. Ex. $obj->variable($newValue); or $value = $obj->variable;
PC & Web Xperience, Inc. (mailto:admin at pcxperience.com)
perl(1), Business::Payroll::XML::Data(3)
To install Business::Payroll, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Payroll
CPAN shell
perl -MCPAN -e shell install Business::Payroll
For more information on module installation, please visit the detailed CPAN module installation guide.