[Solved] Format Error in content.xml

Discuss the word processor
Post Reply
nm2022
Posts: 3
Joined: Sun Aug 28, 2022 4:42 pm

[Solved] Format Error in content.xml

Post by nm2022 »

Hello,

I'm unable to open one of documents due to format error. I've been trying to fix it using the other posts on this website but can't make much headway.

The error is saying there is an issue in content.xml at 2,3465.

One tutorial suggested opening the archive manager to get to the xml file but I can't seem even to do that first step.

Any help getting this sorted is appreciated.

Thanks,

Neil
Last edited by MrProgrammer on Sun Aug 28, 2022 8:55 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 4.1.10 on Windows
FJCC
Moderator
Posts: 9549
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Format Error

Post by FJCC »

Can you post the file here or on a publicly available site. To post it here, click Post Reply and look for the Attachments tab just belwo the box where you type a response.
If you want to try fixing it yourself, the first step is to change the file extension to zip. If the file is currently named MyFile.odt, change it to MyFile.zip. You should then be able to open it with archive software and extract the content.xml file.
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.
nm2022
Posts: 3
Joined: Sun Aug 28, 2022 4:42 pm

Re: Format Error

Post by nm2022 »

Hopefully I've attached the file to this reply. I have been trying to follow a tutorial on here to fix it myself but without much luck.

Thanks,

Neil
Attachments
ASblog draft middleton1 - JD comments 07-07-22.odt
(51.6 KiB) Downloaded 91 times
OpenOffice 4.1.10 on Windows
FJCC
Moderator
Posts: 9549
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Format Error

Post by FJCC »

Here is what I recovered. The best way to avoid this error is to attach comments only to a single position in the text, not to a text range.
Attachments
ASblog draft middleton1 - JD comments 07-07-22_fjcc.odt
(52.54 KiB) Downloaded 84 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.
nm2022
Posts: 3
Joined: Sun Aug 28, 2022 4:42 pm

Re: Format Error in content.xml

Post by nm2022 »

Thanks a lot that seems to have worked. I was really struggling to follow the steps to fix this myself so couldn't have done it without you.

Thanks again,

Neil
OpenOffice 4.1.10 on Windows
John_Ha
Volunteer
Posts: 9600
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format Error in content.xml

Post by John_Ha »

This AOO bug can happen when a .odt file has two or more comments each attached to highlighted ranges of text (as opposed to a location in text).

If the user now
  • keeps Edit > Record Changes ON
  • deletes text containing two ranges with comments attached to those ranges

AOO (but not LO) then corrupts the file.

A bug report has been raised - see Issue 128356 - Track Changes and Annotations on text range can cause corruption. Applies to 4.x (all versions?).

If you use Record changes and Comments you are strongly recommended to swap to LO where the bug has been fixed.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Post Reply