The stupid question is the question not asked | |
PerlMonks |
Spreadsheet::XLSX returning < > and & instead of < > &by psynk (Initiate) |
on Mar 06, 2013 at 20:19 UTC ( [id://1022086]=perlquestion: print w/replies, xml ) | Need Help?? |
psynk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm using ... use Spreadsheet::XLSX; use Spreadsheet::XLSX::Fmt2007; use Spreadsheet::XLSX::Utility2007; ... to parse an xlsx spreadsheet where a cell contains the value: <Message Name> (<Internal Name>) When I look at the value returned, it looks like this (minus the spaces so it doesn't render): & lt;Message Name& gt; (& lt;Internal Name& gt;) This does not happen when the spreadsheet is an xls (2003 format). I tried using Notepad and Textpad to see what the xlsx stores, but it's all gibberish. I'm using the following to return the value of the cell ... $cell = $sheet -> {Cells} $row $col; ... $source_val3_col_val = $cell -> {Val}; Any thoughts or suggestions would be appreciated. I've looked through most of the libraries I'm using and haven't come across the code that converts the strings, so my first thought is that xlsx is storing the &xx; values.
Back to
Seekers of Perl Wisdom
|
|