Page 1 of 1

[Solved] Error in .docx file. Attribute w:hAnsi redefined

Posted: Thu Nov 18, 2021 9:06 pm
by DrimuS
Hi.
When trying to open the attached file I get "SAXException: [word/comments.xml line 2]: Attribute w:hAnsi redefined". Some pages from the document are missing, but most importanly many comments aren't showing. I tried fixing the file by looking for duplicate attributes in the comments.xml file but I'm clearly not knowledgeable enough because I couldn't find the problem. Opening in OpenOffice didn't help either.
If someone is able to help me recover the file I'd be extremely thankful.

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Posted: Thu Nov 18, 2021 9:16 pm
by RoryOF
It opened immediately for me; it is 22 pages long and ends with footnote 52.

Try the attached copy.

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Posted: Thu Nov 18, 2021 9:41 pm
by DrimuS
Weird, it wouldn't open for me.
Your file is missing a few comments but it's not too bad, way better than losing everything. Thanks a lot, have a great day.

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Posted: Thu Nov 18, 2021 9:49 pm
by RoryOF
You could try opening the damaged file with AbiWord - you might get a better result.

Re: ERROR in .docx file. Attribute w:hAnsi redefined. Datalo

Posted: Thu Nov 18, 2021 9:56 pm
by DrimuS
Nice, when opening with AbiWord I still didn't get the missing comments but at least it showed WHERE the comments were. So I only have to fill in those empty spaces, which makes things way easier. Thanks so much.