Convert from XML in excel format to Excel XLS file CPAN module
Hi guys,
I' trying to use "Spreadsheet::WriteExcel::FromXML" to convert xml in excel format to binary xls. I'm trying to follow and understand simple examples, and once that try with with my real xml files. The examples I follow from CPAN are here ExcelTemplate and here Spreadsheet-WriteExcel-FromXML I've installed both modules, Spreadsheet::WriteExcel and Spreadsheet::WriteExcel::FromXML but following those examples don't work. I receive errors "Must define a title attribute for worksheet!" and I'm not sure because the example they use has wroksheet name="tester" example file.xml is: Code:
<workbook> Much appreciated any help. Grettings |
Quote:
What is the entity issuing the error message ? I.e. is it your Perl code or Excel while loading produced by you Perl code ? |
Hi, Ophiuchus (I mean "Perseus" ;)) -
You copied this example verbatim: http://search.cpan.org/~rbo/Excel-Te...el/Template.pm It didn't work; it failed with this error: http://www.unix.com/shell-programmin...t-xml-xls.html If the author's own example doesn't work, that doesn't bode well for you trying to do anything with the module yourself, does it? 'Sounds like you ought to contact the authors .... ... or find a different example :) |
Quote:
I got that message in display after execute Perl code. Quote:
Yes, I've been trying to get some help in this issue without success so far. Sorry for that, just in case. Grettings. |
Hi, again -
Quote:
One other approach, besides contacting the author, is to download the source and try to debug the module itself. Q: Why not look for a different module? Or, more to the point, look for TWO different modules: 1) an Excel module (to read and write arbitrary data from your spreadsheet) 2) an XML module (to parse and manipulate any/all data that happens to be XML)? |
Quote:
|
Quote:
Quote:
I found that Excel needs to open each file to convert it. That action will slow a lot the convertion of all files. I've been asking Excel Experts in forums and until now I don't have a method in which Excel processes all files without open them, this is an advantage of Unix script, because is not needed to open files to process them, then execution is faster. Quote:
but they remain with XML extension, not in original binary Excel format. Thanks for the help so far |
Quote:
I found a russian forum that somebody shows a xml sample file that works with the FromXML module, the sample is below. I could change title by name within one file in the FromXML.pm module and it works, but If I add more things to the xml file (still being a very small and simple xml) more errors begin again. I think is really needed from the author the structure of xml file which will be correctly processed by the module, or discover it for myself, thing that could take me undefined time I think. The sample which is processed correctly is: Reference: http://forum.pskovonline.ru/index.php?showtopic=22168 Code:
<?xml version="1.0" ?> even could take long time. Grettings |
Quote:
"According to the source, tag can have the following values: worksheet, row, cell, format, range, margins" - don't know whether it's of any help. |
Quote:
Many thanks for do that, certainly it helps me what you translated for me. Much appreciated. Grettings |
All times are GMT -5. The time now is 05:58 AM. |