Page 1 of 1

[Solved] Can't Fix "content.xml" error

Posted: Wed Jun 07, 2023 12:03 pm
by masca
Hi everyone,

I am trying to fix two different ODT files. Both give the usual error in the `content.xml` file and are probably due to the fact that changes are being tracked.

To fix the issue, I have followed the guide at https://user.services.openoffice.org/en ... 71&t=87180: I have changed the the file name from "odt" to "zip", uncompressed the folder, opened the "content.xml" file with a text editor, removed the misplaced office:name="__Annotation__<long_number> strings, saved the file, compressed the folder back to zip, changed the name back to odt and tried to open it.

Yet, I do not get a functioning file.

I have also read this thread: viewtopic.php?t=107475, but it is too advanced for me and I don't understand how to the xml files are actually manipulated.

I would really appreciate any guidance on this.

Thanks!

Re: Can't Fix "content.xml" error

Posted: Wed Jun 07, 2023 12:59 pm
by robleyd
Perhaps you might upload the problem file(s) here and someone could look at them?

[Forum] How to attach a document here Note maximum file size is 128K. If your file is larger, use a file sharing site such as Mediafire and post the link here.

Re: Can't Fix "content.xml" error

Posted: Wed Jun 07, 2023 1:37 pm
by masca
Sure.

Here they are:
1) https://www.mediafire.com/file/gkxo6zzt ... 3.odt/file
2)https://www.mediafire.com/file/9onv8uuh ... 3.odt/file

I'd be really interested to understand what might have happened there. Thanks!

Re: Can't Fix "content.xml" error

Posted: Wed Jun 07, 2023 1:57 pm
by Villeroy
Thanks to MrProgrammer for his Perl program viewtopic.php?t=108256

Re: Can't Fix "content.xml" error

Posted: Wed Jun 07, 2023 2:14 pm
by masca
Thanks indeed!