[Solved] Format error in sub-document content.xml
[Solved] Format error in sub-document content.xml
Hi
I like others that I've read about on the site have an error in the content.xml file when i try to open my .odg file.
I've followed the advice and from a zip archive looked at the file in notepad ++ and XML Copy Editor but I just dont understand XML enough to understand what the issue is.
My error when I try to open the drawing file is "Read-Error. Format error discovered in the file in sub-document content.xml at position 2, 3772(row,col).
Could someone kindly take a look at the file for me? Would be greatly appreciated.
Thanks
Jay
I like others that I've read about on the site have an error in the content.xml file when i try to open my .odg file.
I've followed the advice and from a zip archive looked at the file in notepad ++ and XML Copy Editor but I just dont understand XML enough to understand what the issue is.
My error when I try to open the drawing file is "Read-Error. Format error discovered in the file in sub-document content.xml at position 2, 3772(row,col).
Could someone kindly take a look at the file for me? Would be greatly appreciated.
Thanks
Jay
Last edited by RoryOF on Fri Dec 20, 2019 7:09 pm, edited 2 times in total.
Open Office 4.1.7
Windows 10
Windows 10
Re: Format error in sub-document content.xml
I've had a quick look; I think (may be wrong) that the element "style: graphic-properties" which is causing the problem may be a Microsoft addition, departing from the OpenDocument standard. After a quick inspection it seems to me to be a nonstandard usage.
Has this file been prepared or saved at some time by MS Office? If so,the quickest way will be to go back to MS Office to edit it.
Has this file been prepared or saved at some time by MS Office? If so,the quickest way will be to go back to MS Office to edit it.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Format error in sub-document content.xml
Thanks RoryOF
Good question. The guys that created it have since left the company so no idea how they prepared it.
Any advise you could offer on how would I edit it in MS Office?
Good question. The guys that created it have since left the company so no idea how they prepared it.
Any advise you could offer on how would I edit it in MS Office?
Open Office 4.1.7
Windows 10
Windows 10
Re: Format error in sub-document content.xml
I haven't used MS Office in over ten years; current MS Office (any version 2007 and after) should open OpenDocument format files, with the caveat that MS have fiddled with their implementation to depart from the OpenDocument standard.
I found one query on Forum about the same element - XML validators didn't like it in that case, which suggests strongly that it is indeed an MS construct.
I found one query on Forum about the same element - XML validators didn't like it in that case, which suggests strongly that it is indeed an MS construct.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Format error in sub-document content.xml
Try this file which opens for me.
It seems that many style definitions were corrupted by the addition of ="evenodd" so I did the brute force and ignorance thing of deleting them to make the style definitions "look like" all the others.
Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
It seems that many style definitions were corrupted by the addition of ="evenodd" so I did the brute force and ignorance thing of deleting them to make the style definitions "look like" all the others.
Code: Select all
<style:graphic-properties ="evenodd" draw:stroke="none" draw:fill="gradient" draw:fill-gradient-name="Gradient_5f_11" draw:shadow="hidden"/>
</style:style>
...
<style:graphic-properties draw:stroke="none" draw:fill="none" draw:textarea-vertical-align="middle" fo:min-height="1.2cm" fo:min-width="2.54cm" fo:padding-top="0.141cm" fo:padding-bottom="0.141cm" fo:padding-left="0.141cm" fo:padding-right="0.141cm"/>
</style:style>
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.
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.
Re: Format error in sub-document content.xml
I saw the "evenodd" but didn't like to adjust (read: delete) it without more knowledge of its correct syntax.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Format error in sub-document content.xml
RoryRoryOF wrote:I saw the "evenodd" but didn't like to adjust (read: delete) it without more knowledge of its correct syntax.
That's where the "brute force and (especially) ignorance" bit comes in ...
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.
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.
Re: Format error in sub-document content.xml
Hi Both
Thats great!!
I've downloaded the file and can see it now. It will come in very useful for a project I'm working on instead of me creating it all again from scratch.
Would you advise that I only open this file with OpenOffice to prevent any damage being done to it again? Maybe convert it to something else as well if possible like pdf?
Btw...one other thing - could you remove the file from the website please?
Thanks in advance
Jay
Thats great!!
I've downloaded the file and can see it now. It will come in very useful for a project I'm working on instead of me creating it all again from scratch.
Would you advise that I only open this file with OpenOffice to prevent any damage being done to it again? Maybe convert it to something else as well if possible like pdf?
Btw...one other thing - could you remove the file from the website please?
Thanks in advance
Jay
Open Office 4.1.7
Windows 10
Windows 10
Re: [Solved] Format error in sub-document content.xml
A PDF cannot easily be edited, so remain with .odg format, preferably using OpenOffice or LibreOffice, as MS Office might damage it again.
Will remove files now, as requested.
Will remove files now, as requested.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: [Solved] Format error in sub-document content.xml
Thanks again and for the extremely fast response and resolution today!RoryOF wrote:A PDF cannot easily be edited, so remain with .odg format, preferably using OpenOffice or LibreOffice, as MS Office might damage it again.
Will remove files now, as requested.
Happy Christmas
Open Office 4.1.7
Windows 10
Windows 10