[Solved] Corrupt file

Discuss the word processor

[Solved] Corrupt file

Postby Diana2505 » Tue Mar 12, 2019 10:47 pm

I have a corrupt .ODT file and as described on this forum I've put it into a zip file to check the content.xml and the styles.xml.
The xml copy editor shows that the mistakes are in the styles.xml

My problem is that I can't change the mistakes because after I changed it somewhere else appears mistakes.
Can somebody help me?
Attachments
styles.xml
(51.04 KiB) Downloaded 7 times
Last edited by RoryOF on Tue Mar 12, 2019 11:23 pm, edited 1 time in total.
Reason: Added [Solved] and green tick. [RoryOF, Moderator]
open office 4.1.6 Windows
Diana2505
 
Posts: 2
Joined: Tue Mar 12, 2019 8:57 pm

Re: Corrupt file

Postby RoryOF » Tue Mar 12, 2019 10:53 pm

Usually the error is in content.xml. This file was either edited by MS Office, or saved in .doc format. I'll look now at the styles.xml, but my normal experience is with damaged content.xml, so I may not arrive at a fix.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupt file

Postby Diana2505 » Tue Mar 12, 2019 10:55 pm

The content.xml is to large to attach here
open office 4.1.6 Windows
Diana2505
 
Posts: 2
Joined: Tue Mar 12, 2019 8:57 pm

Re: Corrupt file

Postby RoryOF » Tue Mar 12, 2019 10:58 pm

The attached file now passes xml well-formedness tests; I don't know how what I have done will affect the styling of your file.
Attachments
styles.xml
(51.06 KiB) Downloaded 7 times
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupt file

Postby RoryOF » Tue Mar 12, 2019 11:13 pm

Had you "track changes" turned on? If so, open content.xml in XML copy editor and (from memory, so you may need to use discretion) about line 3, column 3850 you may see a series of 11111111111 entries. These are normally something like <annotation>11111, repeating with increasing sequences of 1111s. Either delete them all, including their annotation tag, or leave only the shortest. I'm working from memory, so you will have to correct any detail in what I have instructed. Then reinsert content.cml and try to open your OO file.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupt file

Postby RoryOF » Tue Mar 12, 2019 11:21 pm

Repaired file sent attached to PM.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupt file

Postby RoryOF » Tue Mar 12, 2019 11:22 pm

Just for the record - another file edited at one time in .doc format with Track Changes turned on.
Apache OpenOffice 4.1.6 on Xubuntu 18.04.2 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 28944
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to Writer

Who is online

Users browsing this forum: No registered users and 23 guests