Excel Zip Decompression Internals
DataLoom Pro parses .xlsx spreadsheets by opening them as standard ZIP packages using System.IO.Compression.
Technical Decompression Steps
- Open File Stream: Opens the
.xlsxfile with sharing permissions enabled (FileShare.ReadWrite). - Locate sharedStrings.xml: Unzips the shared strings table to load all unique text strings into a cache array.
- Parse sheet1.xml: Loops through cell nodes, matching coordinates (e.g.
A1,B2). - Resolve Value: If the cell contains an index, it looks up the string in the sharedStrings cache; otherwise, it reads the numerical value directly, bypassing Excel COM engines.