Page 1 of 1

[Solved] Corrupt file

PostPosted: Tue Mar 12, 2019 10:47 pm
by Diana2505
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?

Re: Corrupt file

PostPosted: Tue Mar 12, 2019 10:53 pm
by RoryOF
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.

Re: Corrupt file

PostPosted: Tue Mar 12, 2019 10:55 pm
by Diana2505
The content.xml is to large to attach here

Re: Corrupt file

PostPosted: Tue Mar 12, 2019 10:58 pm
by RoryOF
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.

Re: Corrupt file

PostPosted: Tue Mar 12, 2019 11:13 pm
by RoryOF
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.

Re: Corrupt file

PostPosted: Tue Mar 12, 2019 11:21 pm
by RoryOF
Repaired file sent attached to PM.

Re: Corrupt file

PostPosted: Tue Mar 12, 2019 11:22 pm
by RoryOF
Just for the record - another file edited at one time in .doc format with Track Changes turned on.