I would like to access the value of each cell of nodelists I retrieved with:
$xc->registerNs('ns', 'urn:schemas-microsoft-com:office:spreadsheet');
foreach my $row ($xc->findnodes('/ns:Workbook/ns:Worksheet/ns:Table/ns:Row'))
they have the following format:
<Row>
<Cell><Data ss:Type="String">sbdsvrwm832</Data></Cell>
<Cell><Data ss:Type="String">3.0.6</Data></Cell>
<Cell><Data ss:Type="Number">5.0999999999999996</Data></Cell>
<Cell><Data ss:Type="String"/></Cell>
<Cell><Data ss:Type="String">NA</Data></Cell>
<Cell><Data ss:Type="String">NA</Data></Cell>
<Cell><Data ss:Type="String">N/A in SHV3</Data></Cell>
<Cell><Data ss:Type="String">YES</Data></Cell>
<Cell><Data ss:Type="String"/></Cell>
<Cell><Data ss:Type="String">YES</Data></Cell>
<Cell><Data ss:Type="String">2013-09-20</Data></Cell>
<Cell><Data ss:Type="String">NO</Data></Cell>
<Cell><Data ss:Type="String"/></Cell>
</Row><Row>
<Cell><Data ss:Type="String">sbtorsvr832</Data></Cell>
<Cell><Data ss:Type="String">4.0.1</Data></Cell>
<Cell><Data ss:Type="Number">3.011111111</Data></Cell>
<Cell><Data ss:Type="String"/></Cell>
<Cell><Data ss:Type="String">ORI</Data></Cell>
<Cell><Data ss:Type="String">NA</Data></Cell>
<Cell><Data ss:Type="String">N/A in SHV3</Data></Cell>
<Cell><Data ss:Type="String">YES</Data></Cell>
<Cell><Data ss:Type="String"/></Cell>
<Cell><Data ss:Type="String">YES</Data></Cell>
<Cell><Data ss:Type="String">2013-07-18</Data></Cell>
<Cell><Data ss:Type="String">NO</Data></Cell>
<Cell><Data ss:Type="String"/></Cell>
</Row>...
...
Note that the Cell/Data elements do NOT have names or IDs that can be used with XPath expressions (they are mostly identical elements, some values may be null or contain whitespaces). Is there a way I can access data of an arbitrary cell for each of such row by index? Thanks in advance.
Alex