Page 1 of 1
[Solved] LibreOffice Writer - SAXParseException
Posted: Mon Oct 03, 2016 7:09 pm
by skybell
Hi,
I have saved my OfficeLibre Writer document as a Microsoft file and when I go to open it I get the following error message
"File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:eastAsiaTheme redefined
', Stream 'word/document.xml', Line 2, Column 272575(row,col)."
IF anybody would be able to get this document to be able to open again in OfficeLibre that would be fantastic and assist with solving the problem and tell me what went wrong.
Thank you so much, a lot of time has gone into this document.
Re: Writer - SAXParseException
Posted: Mon Oct 03, 2016 7:11 pm
by RoryOF
It would help if you uploaded the file or a link to it on a file-sharing site.
Re: Writer - SAXParseException
Posted: Mon Oct 03, 2016 8:14 pm
by skybell
Document attached.
Re: Writer - SAXParseException
Posted: Mon Oct 03, 2016 8:27 pm
by RoryOF
Try this - please check it carefully.
Re: Writer - SAXParseException
Posted: Mon Oct 03, 2016 11:32 pm
by John_Ha
skybell wrote:... I get the following error message:
"File format error found at SAXParseException: '[word/document.xml line 2]: Attribute w:eastAsiaTheme redefined ', Stream 'word/document.xml', Line 2, Column 272575(row,col)."
The error message means that the XML tags are corrupted in the document.xml file in the .docx file. The corruption is, or more likely starts, in line 2 at column 272,575. XML files have the entire document as a single, very long line, namely line 2.
The fix Rory has done will have been to find this corruption and fix it.
Re: Writer - SAXParseException
Posted: Mon Oct 03, 2016 11:38 pm
by RoryOF
The same corruption appeared about five times in the file.
Re: Writer - SAXParseException
Posted: Mon Oct 03, 2016 11:44 pm
by Villeroy
The repaired document can't be opened with MS Word viewer.
LibreOffice opens the file.
docx is not an option unless you own a copy of MS Office. Avoid this pestilence of a file format.
Re: Writer - SAXParseException
Posted: Tue Oct 04, 2016 9:15 am
by RoryOF
OO (4.1.3 dev version) and AbiWord also opened it, Villeroy. I am not running a copy of MS Word Viewer. I agree with your remarks on .docx
Re: Writer - SAXParseException
Posted: Mon Oct 10, 2016 1:50 am
by skybell
Thank you very much for your help with this, it has saved me a lot of time. I know what to do next time.

Re: [Solved] Writer - SAXParseException
Posted: Wed Dec 14, 2016 3:08 pm
by John_Ha