Ask Your Question

Getting error message when trying to open a saved file, I upgraded to,

asked 2016-11-29 00:57:21 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:hAnsiTheme redefined ', Stream 'word/document.xml', Line 2, Column 46268(row,col).

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-11-29 09:30:02 +0100

floris v gravatar image

If you are good with xml editing, try the following: make a copy of the file, change the extension of the copy to .zip, open the archive, extract the file document.xml, open it with a text editor that can save in Unix style format (with just a CR at the end of a line). Find the offending location and remove the second occurrence of w:hAnsiTheme. Save, put back in the copy, change extension to docx, try to open. If more similar errors are found, repeat the procedure.

If you are not good at this, register at , (provide a fake OpenOffice version for your signature and change that once your account has been validated), then ask for help there. You will have to upload your file there or at a file exchange service.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-11-29 00:57:21 +0100

Seen: 61 times

Last updated: Nov 29 '16