[Solved] File format error found at SAXParse

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

[Solved] File format error found at SAXParse

Postby Coffaro » Mon Dec 05, 2016 2:35 pm

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.
Coffaro
 
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

Re: File format error found at SAXParse

Postby RoryOF » Mon Dec 05, 2016 2:40 pm

Then upload the file to a file sharing site and post the URL here.
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: 32215
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Postby floris v » Mon Dec 05, 2016 2:42 pm

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.
AOO 4.1.6 op Linux Mint
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
User avatar
floris v
Volunteer
 
Posts: 4231
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: File format error found at SAXParse

Postby Coffaro » Mon Dec 05, 2016 2:55 pm

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
Coffaro
 
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

Re: File format error found at SAXParse

Postby RoryOF » Mon Dec 05, 2016 3:06 pm

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

Re: File format error found at SAXParse

Postby Coffaro » Mon Dec 05, 2016 3:12 pm

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
Coffaro
 
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am

Re: File format error found at SAXParse

Postby RoryOF » Mon Dec 05, 2016 3:28 pm

Repaired(?) file sent by email
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: 32215
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: File format error found at SAXParse

Postby Coffaro » Mon Dec 05, 2016 3:41 pm

The file is ok! thank you very much... You are great
LibreOffice 5.2.3.3. on Windows 8
Coffaro
 
Posts: 5
Joined: Mon Dec 05, 2016 11:39 am


Return to LibreOffice

Who is online

Users browsing this forum: No registered users and 2 guests