Page 1 of 1
[Solved] Read-error format error discovered in sub-document styles.xml
Posted: Wed Jun 15, 2022 3:32 pm
by bmeirose
Hi,
I have a very similar problem as described here:
https://forum.openoffice.org/en/forum/v ... 7&t=107560, that is I have a corrupted file with this xml-type error.
Opening with a xml editor did not work at all. The file is unfortunately too large to be attached to the forum, so i wonder if there are any suggestions. In here:
https://forum.openoffice.org/en/forum/v ... 2&start=30
I see that one might be able to fix this by editing externally, but I haven't found any tools that allow me to do that.
Thanks
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 3:48 pm
by RoryOF
Keep an unmodified copy of the damaged file; work only on a copy. You could upload to a file-sharing site and post the URL here.
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 3:53 pm
by bmeirose
OK, Thanks. Here's the file:
https://wetransfer.com/downloads/60c687 ... ient_email
| Edit: 2022-08-06 link above is broken -- MrProgrammer, forum moderator |
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 4:20 pm
by RoryOF
Am trying to send repaired file by email - check last three or four slides - I had to delete a faulty tag around about there.
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 4:29 pm
by RoryOF
Please let me know if you receive the file by email; otherwise I'll send it differently.
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 5:27 pm
by bmeirose
I unfortunately didn't receive the file. Thanks!
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 6:04 pm
by MrProgrammer
bmeirose wrote: ↑Wed Jun 15, 2022 3:32 pm
Read-error format error discovered in sub-document content.xml
I see that one might be able to fix this by editing externally, but I haven't found any tools that allow me to do that.
I used
unzip on the file you sent. I don't see a problem in content.xml. The trouble is in styles.xml which is just a plain Unicode (UTF-8) text file. The attribute
draw:mirror-vertical is specified twice in the
draw:enhanced-geometry tag. You need to delete one of the pair. I suspect the "false" setting is correct, but you can experiment. Make a copy of your file before attempting repair, of course. This is the section you need to fix:
<draw:enhanced-geometry
draw:mirror-horizontal="false"
draw:mirror-vertical="false"
svg:viewBox="0 0 0 0"
draw:text-areas="0 0 ?f3 ?f2"
draw:mirror-vertical="true"
draw:type="ooxml-rect"
draw:enhanced-path="M 0 0 L ?f3 0 ?f3 ?f2 0 ?f2 Z N"
>
<draw:equation draw:name="f0" draw:formula="logwidth/2" />
<draw:equation draw:name="f1" draw:formula="logheight/2" />
<draw:equation draw:name="f2" draw:formula="logheight" />
<draw:equation draw:name="f3" draw:formula="logwidth" />
</draw:enhanced-geometry>
I can't provide more specific instructions since you do not say which operating system you use.
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.
Re: Read-error format error discovered in the file in sub-document content.xml at 286401 (row,col)"
Posted: Wed Jun 15, 2022 6:08 pm
by RoryOF
Attached is the repaired styles.xml; replace this into your damaged file and all should be well
Re: Read-error format error discovered in sub-document content.xml
Posted: Thu Jun 16, 2022 7:26 am
by bmeirose
Thank you very much for the file. Problem solved.