my $oBook = new Spreadsheet::ParseExcel->new()->Parse('file.xml'); my $template = Excel::Template->new($oBook); # or my $xml = Spreadsheet::ParseExcel->new()->Parse('file.xml')->toXML(); my $template = Excel::Template->new($xml);