[Solved] LibreOffice File format error found at SAXParse

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.
Post Reply
roddssd
Posts: 3
Joined: Mon Jul 17, 2017 4:17 pm

[Solved] LibreOffice File format error found at SAXParse

Post by roddssd »

Hi, i have the same problem and can't find a solution.
Acknak, how did you do it?
OpenOffice 3.1 on Linux Mint
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] LibreOffice File format error found at SAXParse

Post by RoryOF »

Use an archive manager to open the .docx file, then edit document.xml (in the word folder therein) with an XML editor, removing the duplicate tag. Rebuild the .docx file.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved] LibreOffice File format error found at SAXParse

Post by acknak »

It takes longer to explain than to fix ;-)

The xml code for the document has some trivial errors. The errors prevent OO from accepting the document but they are quite easy to fix with a text editor.

For example, this line from the xml has two repeated attributes, which makes the xml invalid even though it doesn't really change anything:
<w:color w:val="365F91" w:themeColor="accent1"
   w:themeShade="bf" w:themeColor="accent1" w:themeShade="bf"/>
It's just a matter of locating the invalid lines and editing the xml to remove the repeated attribute(s).
AOO4/LO5 • Linux • Fedora 23
roddssd
Posts: 3
Joined: Mon Jul 17, 2017 4:17 pm

Re: [Solved] LibreOffice File format error found at SAXParse

Post by roddssd »

Well, thanks for helping!
I've been trying that, but i can't see any repeated attribute in document.xml.

i got this one...

https://drive.google.com/open?id=0Bx1xC ... 0FMRmU1R2s


When try to open mi .docx, it shows me this message: "SAXParseException: '[word/document.xml line 2]: Attribute w:themeTint redefined
', Stream 'word/document.xml', Line 2, Column 219763(row,col)."
OpenOffice 3.1 on Linux Mint
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] LibreOffice File format error found at SAXParse

Post by RoryOF »

Please send me a PM with an email address to which I can return the corrected file.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
roddssd
Posts: 3
Joined: Mon Jul 17, 2017 4:17 pm

Re: [Solved] LibreOffice File format error found at SAXParse

Post by roddssd »

Thank you!
It's working now.
OpenOffice 3.1 on Linux Mint
Post Reply