I get the following warning when opening an XML file with the ending .xls
but I want to use it as xls
:
"The file you are trying to open, '[filename]', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?" (Yes | No | Help)
Quoted from the MSDN blog article 'Excel 2007 Extension Warning On Opening Excel Workbook from a Web Site' archive link original link (broken).
How to solve this?
I use .xls with this source code:
<?xml version="1.0" encoding="utf-8"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
<Worksheet ss:Name="Export">
<Table>
<Row>
<Cell><Data ss:Type="Number">3</Data></Cell>
<Cell><Data ss:Type="Number">22123497</Data></Cell>
</Row>
</Table>
</Worksheet>
</Workbook>