[Solved] Format error discovered in sub-document content.xml

Discuss the word processor
Locked
sonjatineke
Posts: 3
Joined: Fri Feb 24, 2023 6:24 pm

[Solved] Format error discovered in sub-document content.xml

Post by sonjatineke »

Hi,
The above error comes up when I attempt to open the attached. I would be grateful for any help in fixing the file, as I just lost 2 days' work!
Many thanks.
Last edited by MrProgrammer on Fri Feb 24, 2023 7:24 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
Open Office 4.1.5 on OS X 10.11.6
FJCC
Moderator
Posts: 9631
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Read Error. Format error discovered in the file in sub-document content.xml at 2,3186(row,col).

Post by FJCC »

Here is what I recovered. Check it carefully!
Attachments
Repaired_fjcc.odt
(72.31 KiB) Downloaded 82 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
sonjatineke
Posts: 3
Joined: Fri Feb 24, 2023 6:24 pm

Re: Read Error. Format error discovered in the file in sub-document content.xml at 2,3186(row,col).

Post by sonjatineke »

Many thanks for checking it and responding so quickly! However, the same error still comes up when I try to open your corrected file. ´
Open Office 4.1.5 on OS X 10.11.6
User avatar
MrProgrammer
Moderator
Posts: 5439
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Read Error. Format error discovered in the file in sub-document content.xml at 2,3186(row,col).

Post by MrProgrammer »

sonjatineke wrote: Fri Feb 24, 2023 6:29 pm I would be grateful for any help in fixing the file
[Tutorial] Delete duplicate attributes tool immediately corrected the problem. You have MacOS, so you can run this yourself!
$ perl $prog <bad.xml >content.xml
Attributes read   : 6526
Attributes written: 6522
Attributes removed: 4
202302241101.odt
(102.8 KiB) Downloaded 83 times

sonjatineke wrote: Fri Feb 24, 2023 6:29 pm I just lost 2 days' work!
Duplicate attribute problems occur regularly in the forum as a result of Issue 128356: Track Changes and Annotations can cause corruption. I think the problem is more common in OpenOffice than in LibreOffice but the latter has problems of its own: LibreOffice Writer loses tracked changes when saving as .docx. Be sure to make frequent backups of your file if you use the change tracking feature.
Q23: How do I backup OpenOffice files on my Mac?

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
sonjatineke
Posts: 3
Joined: Fri Feb 24, 2023 6:24 pm

Re: Read Error. Format error discovered in the file in sub-document content.xml at 2,3186(row,col).

Post by sonjatineke »

Hello,
now it works! phew! many, many, many thanks.
really.
thankyou
Open Office 4.1.5 on OS X 10.11.6
Locked