Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse XLSX files with unusual structure #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stenlarsson
Copy link

Normally you will find workbook.xml in the xl directory, but recently we got a file where it was located in the root.

To find the actual location of workbook, we must parse the file _rels/.rels. A separate rels file located relative to the workbook then points out the locations of the sheets, styles and shared strings.

@stenlarsson
Copy link
Author

This has conflicts with master because I based it on 2.5.3 which doesn't have the performance regressions described in #122.

Normally you will find `workbook.xml` in the `xl` directory, but recently we got a file where it was located in the root.

To find the actual location of workbook, we must parse the file `_rels/.rels`. A separate rels file located relative to the workbook then points out the locations of the sheets, styles and shared strings.
@stenlarsson stenlarsson force-pushed the parse-unusual-structure branch from 661a6c6 to e46a9d8 Compare October 11, 2024 07:45
We found an XLSX missing the `_rels/.rels` file, and in this case falling back to the default path worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant