I wrote a program, which open docx package and changes some <w:t>
-text in "word/document.xml". When i open new generated docx in Microsoft word, it gives me an error — "file is corrupted". But if look in "Open XML SDK Tool" diffs between template docx and result docx files — there is only two line changed in "word/document.xml". Look at screenshot:
Program doesn't touches document format, styles or smth. Only text in <w:t>
So, what's can provoke "file is corrupted" error in Microsoft Word?
And this error appears ONLY in Microsoft Word. For example OpenOffice and TextEdit on Mac OS X open generated files without any errors.
I upload these docx files, so you can look at them by yourself.