[Solved] LibreOffice Writer - SAXParseException

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.

[Solved] LibreOffice Writer - SAXParseException

Postby skybell » Mon Oct 03, 2016 7:09 pm

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.
Last edited by RoryOF on Wed Dec 14, 2016 4:29 pm, edited 2 times in total.
Reason: tagged [Solved].
OpenOffice 3.1 on Windows 10
skybell
 
Posts: 3
Joined: Mon Oct 03, 2016 7:01 pm

Re: Writer - SAXParseException

Postby RoryOF » Mon Oct 03, 2016 7:11 pm

It would help if you uploaded the file or a link to it on a file-sharing site.
Apache OpenOffice 4.1.9 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32202
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Writer - SAXParseException

Postby skybell » Mon Oct 03, 2016 8:14 pm

Document attached.
Attachments
2017 Website Application Form Annabel Craw v1.docx
(61.83 KiB) Downloaded 153 times
OpenOffice 3.1 on Windows 10
skybell
 
Posts: 3
Joined: Mon Oct 03, 2016 7:01 pm

Re: Writer - SAXParseException

Postby RoryOF » Mon Oct 03, 2016 8:27 pm

Try this - please check it carefully.
Attachments
2017 Website Application Form Annabel Craw v1 repaired.docx
(58.1 KiB) Downloaded 203 times
Apache OpenOffice 4.1.9 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32202
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Writer - SAXParseException

Postby John_Ha » Mon Oct 03, 2016 11:32 pm

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.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8219
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Writer - SAXParseException

Postby RoryOF » Mon Oct 03, 2016 11:38 pm

The same corruption appeared about five times in the file.
Apache OpenOffice 4.1.9 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32202
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Writer - SAXParseException

Postby Villeroy » Mon Oct 03, 2016 11:44 pm

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.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, no OpenOffice, LibreOffice 6.4
User avatar
Villeroy
Volunteer
 
Posts: 29294
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Writer - SAXParseException

Postby RoryOF » Tue Oct 04, 2016 9:15 am

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
Apache OpenOffice 4.1.9 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 32202
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Writer - SAXParseException

Postby skybell » Mon Oct 10, 2016 1:50 am

Thank you very much for your help with this, it has saved me a lot of time. I know what to do next time.
:D
OpenOffice 3.1 on Windows 10
skybell
 
Posts: 3
Joined: Mon Oct 03, 2016 7:01 pm

Re: [Solved] Writer - SAXParseException

Postby John_Ha » Wed Dec 14, 2016 3:08 pm

LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8219
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to LibreOffice

Who is online

Users browsing this forum: No registered users and 5 guests