The main change is that importing `XSSFImportFromXML.importFromXML` now resizes mapped tables when importing XML data. Each table will have the a row count of exactly the amount of imported elements, i.e. it shrinks or grows accordingly. When growing, cells below the table are overwritten.
The other issue this fixes is that table column id's were wrongly used to get the column position. This resulted in data written to wrong columns when the id did not match the positions.
Additional checks have been added to the tests for both issues. Changes to `CustomXMLMappings-complex-type.xlsx` include:
- Added an additional (unmapped) column to verify that data is written to correct columns when the column id doesn't match the columns position
- Added some text in a cell below a table that will grow, to check if the cell is correctly overwritten when the table grows
- Added some text in a cell inside a table that will shrink, to check if the cell is correctly cleared when the shrinks
You can merge this pull request into a Git repository by running: