How do I open files with xls extension when its contents is xml?

On several occasions I stumbled upon websites that export to “xls” but it’s not an ordinary XLS file. Seems to be some sort of Microsoft XML, but not zipped and packaged like an xlsx file?

I expect LibreOffice Calc to load the spreadsheet but instead it prompt me to do an text import.

Is there any work-around I can do to make it import properly? I can certainly try to layout it like an xlsx zip file if that’s possbile.

LibreOffice Calc Version: 5.3.6.1

10302143-edit2.xls

  1. Try opening with Microsoft 2003 XML selected as the file type.
  2. If does not help, show the file.

@gabix Unfortunately I can’t share my file since it contains sensitive information. I tried to edit out the sensitive parts from the file but the original file seems to be encoded in utf-8 but the contents says utf-16 so it’s difficult.

Never-the-less I’ve created a file from the original using a hex editor. I’m going to attach it to the original question if I can

I’ve tried to select Microsoft 2003 XML when opening the original file. The best result I could get was an error dialog saying “General IO Error”.

The file that you have shared opens fine (i. e. no error message) in LibreOffice Calc 6.1.2.1, but in 5.4.7.2 I get an error message like in your case. So, well, upgrade LibreOffice.

Ok, thank you gabix for your time :slight_smile:

Reposting as an answer: the file in question should be opened as Microsoft Excel XML 2003, however at least two builds of the LibreOffice 5.x branch throw error messages. But LibreOffice 6.1.2.1 (and, hopefully, other 6.x builds) seem to be fine with the file.

Hi All,

I’m getting MS Excel 2003 XML files with XLS extension from our ERP system (based on Oracle EBS) and I need to print them.

LibrOffice 6.3.3.2 will not open them, but the develepment branch (6.4.0.0 beta1 so far) - will do. The trick is to rename file to *.xml and select “MS Excell XML 2003” file format when opening. Both versions will open empty file if the *.xls extension is left.