Excel can save its Workbooks in the "XML Table" format preserving all the formatting and styling information and then open and edit them as native Excel workbooks. I wish to generate such files by Mathematica for Excel programmatically adding formatting information for rows, columns, cells etc.
The first stumbling problem is that even when I Import Excel-generated file in Mathematica and then just Export it backward to "XML" the resulting file cannot be opened by Excel. Opening it in a text editor shows that this file contains apostrophes instead of quotes. Adding the "AttributeQuoting" -> "\"" option to Export fixes this but the resulting file still cannot be opened by Excel. More careful comparison shows that Export also drops the most of namespace prefixes in the generated file.
How to generate Excel-compatible XML files from Mathematica?
P.S. This question comes from the previous question: "How to export to Excel numbers as text fields from Mathematica?"
ExportXML data to .xlsx format I get a file where all the XML data are simply put in one cell. So it is not what I need. Thanks for suggestion, now I have created separate question on mathematica.stackexchange.com.