Help: SAXException: [word/document.xml line 2]: Attribute w:val redefined

asked 2020-06-11 12:00:11 +0200

VitoLee gravatar image

updated 2020-07-12 02:04:10 +0200

Alex Kemp gravatar image

Please, guys! Help me, I have an exam in a few days! Now I explain: Last night when I finished working on the pc, I saved the original file, plus I saved another one as a precaution (for past reasons I knew it could happen to me! today happened!) this morning, as soon as I should have started working, the file would not open anymore and I appeared this inscription: An error occurred while opening the file. This may be caused by the corrupted contents of the file. Error details: SAXException: [word/document.xml line 2]: Attribute w:val redefined Proceeding with the import may cause data loss or corruption, and the application may become unstable or crash. Do you want to ignore the error and continue uploading the file? Yes - No

pressing No: File format error in SAXParseException: '[word/document.xml line 2]: Attribute w:val redefined ', Stream 'word/document.xml', Line 2, Column 56098(line,col).

Pressing yes: "It only makes me see 3 pages!" Will it be because of the windows updates (which I did yesterday)? It will be for what it will be, but guys, help me! Please!

edit retag flag offensive close merge delete

Comments

See my comment to https://ask.libreoffice.org/en/question/83865/tutorial-fixing-docx-files-with-saxparse-error/ for the regex to fix duplicating attribute problem. If you have a reproducible scenario, please file a bug report with a sample file attached, and steps needed to turn it into an invalid.

Mike Kaganski gravatar imageMike Kaganski ( 2020-06-11 12:42:22 +0200 )edit