How to use correctly Spreadsheet::WriteExcel to convert xml to xls
Hi to all,
I want to convert xml file to binary Excel file, after googling for a while, I found cpan tool "Spreadsheet::WriteExcel::FromXML". I installed both,
Spreadsheet::WriteExcel and Spreadsheet::WriteExcel::FromXML.
To test Spreadsheet::WriteExcel I executed a example script that comes within it, "a_simple.pl" and works.
But the codes below intended to use convert xml to xls don't work for me.
I've been trying to follow 2 examples of xml to xls:
This code below
Ref: http://search.cpan.org/~rbo/Excel-Template-0.33/lib/Excel/Template.pm
and the options from the code below:
Ref: http://search.cpan.org/dist/Spreadsheet-WriteExcel-FromXML/lib/Spreadsheet/WriteExcel/FromXML.pm
Follow the 1rst example, the test.xml is as simple as:
and I get the following errors when I run the 2nd code:
May somebody please help me saying me how to test/use correctly the module Spreadsheet::WriteExcel::FromXML or
Spreadsheet::WriteExcel in order to convert XML files to Excel XLS files?
Thanks in advance
---------- Post updated at 03:51 PM ---------- Previous update was at 05:32 AM ----------
May somebody help me with this
Thanks in advance.
Last edited by Ophiuchus; 10-11-2011 at 06:39 AM..
We're not "on call". If we don't answer you in the first 5 minutes, wait!
I don't see a 'title' attribute in there, I do see a 'name' one, it's asking for 'title', give it 'title'. Computers are the most literal-minded things in the world.
I've been unable to install this Spreadsheet::WriteExcel::FromXML module, too many thousand dependencies, so I can't test it myself.
I've changed title and works and changed some things within the module and fits some
situations, but when I change a few things in xml sample, other errors appear.
I think is better to ask to the author the correct xml structure the module expects.
Quote:
Originally Posted by Corona688
I've been unable to install this Spreadsheet::WriteExcel::FromXML module, too many thousand dependencies, so I can't test it myself.
I've changed title and works and changed some things within the module and fits some situations, but when I change a few things in xml sample, other errors appear.
Which other errors? As before, it might be telling you exactly what it wants...
parse, scalar errors. but don't worry. I found some xml files that open correctly in excel and others don't because they have more than 256 columns which is what "xls" files accept.
I don't want to take you or anubody else time in this because I realize that won't be the solution since thin perl module only converts xml to xls and now to solve that issues I need to do a script to convert my xml files into xml xlsx format.
I've been seeing how xlsx format works and I know what which files I need to generate in order to get the correct structure.
Probably to get some part of that I will need to ask something to experts in the forum, maybe if that happens and you see my eventual question and you have some time, it would be wonderful receive your help.
Meantime, much appreciated for your time and interest to help.
Hi All,
attempting to use this pm to import large xml file directly into excel and getting some errors.
Using the generic example:
#!/usr/bin/perl -w
use strict;
use warnings;
use Spreadsheet::WriteExcel::FromXML;
my $fromxml =... (1 Reply)
Any one having idea that,How to copy merged cell from existing excel file to new excel file?
Note : Is there any bug in module(Spreadsheet::WriteExcel or Spreadsheet::ParseExcel) itself ?
Thanks,
kavi (0 Replies)
I need to take the totals from my script and input them into a excel spreadsheet. Right now, I just copy and paste. Is there an easier way?
3906
is the total jobs in ABEND state
4005
is the total jobs in SUCC state
1050
is the total jobs in HOLD state (1 Reply)