Summary: | xsi:nil attribute for <t> tag caused Excel 2007 to fail to open workbook | ||
---|---|---|---|
Product: | POI | Reporter: | Eduard Dudar <eduard.dudar> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows Vista |
Description
Eduard Dudar
2009-05-28 03:18:40 UTC
Can you post sample code that generates xsi:nil entries in sharedStrings.xml? It would be helpful to diagnose the problem. Regards, Yegor Original source code where I have this is quite tightly coupled within huge application and will not give any value without own environment. I'm going to simplify this case as much as it will be possible and will back here. Fixed in r780228. Passing null to the XSSFRichTextString constructor resulted in xsi:nil for the <t> tag. A minimal code to reproduce the behavior is as follows: XSSFCell cell = sheet.createRow(0).createCell(0); cell.setCellValue(new XSSFRichTextString((String)null)); I fixed setCellValue to blank cell ( erase all the data previously associated with this cell) if the argument string is null. Regards, Yegor |