[Solved] File format error found at SAXParse

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.
Post Reply
Coffaro
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

[Solved] File format error found at SAXParse

Post by Coffaro »

Hi, I did a big mistake. I saved a file in docx format and now I cannot open it. This is the message:

SAXParseException: '[word/document.xml line 2]: Attribute w:cstheme redefined
', Stream 'word/document.xml', Line 2, Column 92211(riga,colonna).

I tried to open it in every way, but it doesn't work, It's a very important document (part of a phd thesis). Please help me! The file is too big to be attached (210 kb).

Thank you very much
Last edited by Coffaro on Mon Dec 05, 2016 3:42 pm, edited 1 time in total.
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Post by RoryOF »

Then upload the file to a file sharing site and post the URL here.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
floris v
Volunteer
Posts: 4430
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: File format error found at SAXParse

Post by floris v »

Make a copy of the file, change the extension to .zip, open the archive, extract and open document.xml in an xml editor, or in a plain text editor if the xml editor refuses to open it (because it's not valid xml). Search for Attribute w:cstheme and remove the second or first definition. Save, insert in the archive over the old version, rename to odt, try to open again.
You can also upload at a file sharing host and provide a link here.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Coffaro
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

Re: File format error found at SAXParse

Post by Coffaro »

Thanks a lot. I'm trying to do it. This is the link to download the file:

https://coffaro.bitrix24.com/~pbBgj

Thank you very much...
LibreOffice 5.2.3.3. on Windows 8
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Post by RoryOF »

Please send me a PM with email address to which I can send the repaired file. It now has 22 pages.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Coffaro
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

Re: File format error found at SAXParse

Post by Coffaro »

floris v wrote: Search for Attribute w:cstheme and remove the second or first definition.
I tried to do it, but now it say "general error". May you explain me what I must remove exactly?
Thanks a lot!

P.s.
The damaged file is here: https://coffaro.bitrix24.com/~pbBgj
LibreOffice 5.2.3.3. on Windows 8
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Post by RoryOF »

Repaired(?) file sent by email
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Coffaro
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

Re: File format error found at SAXParse

Post by Coffaro »

The file is ok! thank you very much... You are great
LibreOffice 5.2.3.3. on Windows 8
Post Reply