tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.49k stars 418 forks source link

Relationship exception #515

Open heafox opened 4 years ago

heafox commented 4 years ago
image
heafox commented 4 years ago
image
heafox commented 4 years ago
image
heafox commented 4 years ago
image
heafox commented 4 years ago

Can XML elements ignore the namespace? Some URLs in xlsx files are not equal to the default URL in the program.

heafox commented 4 years ago
image
doomlaur commented 2 years ago

I can also confirm this issue. As @heafox mentioned, a key_not_found exception is thrown. This happens with files saved in the Strict Open XML Spreadsheet format supported by Office 2013 and newer: https://wiki.documentfoundation.org/Support_OOXML_strict_export

Fortunately, that format is not the default in Excel, not even in the newest versions, so the probability of finding such files is not high, but of course it's possible.

As @heafox showed in some pictures, the http://purl.oclc.org/ooxml/... namespaces are missing. I'll try to find some time and hopefully provide you with a pull request soon. I'll keep you updated.